Class Overview
Utility class for reencoding PKCS#12 files to definite length.
Summary
Public Methods |
static
byte[]
|
convertToDefiniteLength(byte[] berPKCS12File)
Just re-encode the outer layer of the PKCS#12 file to definite length encoding.
|
static
byte[]
|
convertToDefiniteLength(byte[] berPKCS12File, char[] passwd, String provider)
Re-encode the PKCS#12 structure to definite length encoding at the inner layer
as well, recomputing the MAC accordingly.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
Public Methods
public
static
byte[]
convertToDefiniteLength
(byte[] berPKCS12File)
Just re-encode the outer layer of the PKCS#12 file to definite length encoding.
Parameters
berPKCS12File
| - original PKCS#12 file |
Returns
- a byte array representing the DER encoding of the PFX structure
public
static
byte[]
convertToDefiniteLength
(byte[] berPKCS12File, char[] passwd, String provider)
Re-encode the PKCS#12 structure to definite length encoding at the inner layer
as well, recomputing the MAC accordingly.
Parameters
berPKCS12File
| - original PKCS12 file. |
provider
| - provider to use for MAC calculation. |
Returns
- a byte array representing the DER encoding of the PFX structure.