| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | calculatePbeMac(ASN1ObjectIdentifier oid, byte[] salt, int itCount, char[] password, byte[] data, String provider)
|
| public static byte[] | Returns: a byte array representing the DER encoding of the PFX structure- original PKCS#12 file berPKCS12File)Just re-encode the outer layer of the PKCS#12 file to definite length encoding. |
| public static byte[] | Returns: a byte array representing the DER encoding of the PFX structure.- original PKCS12 file. berPKCS12File, char[] passwd, String - provider to use for MAC calculation. provider)Re-encode the PKCS#12 structure to definite length encoding at the inner layer as well, recomputing the MAC accordingly. |
| PKCS12Util | back to summary |
|---|---|
| public PKCS12Util() | |
| calculatePbeMac | back to summary |
|---|---|
| private static byte[] calculatePbeMac(ASN1ObjectIdentifier oid, byte[] salt, int itCount, char[] password, byte[] data, String provider) throws Exception | |
| convertToDefiniteLength | back to summary |
|---|---|
| public static byte[] convertToDefiniteLength(byte[] berPKCS12File) throws IOException Just re-encode the outer layer of the PKCS#12 file to definite length encoding.
| |
| convertToDefiniteLength | back to summary |
|---|---|
| public static byte[] convertToDefiniteLength(byte[] berPKCS12File, char[] passwd, String provider) throws IOException Re-encode the PKCS#12 structure to definite length encoding at the inner layer as well, recomputing the MAC accordingly.
| |