| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ContentInfo[] | Returns: an array of ContentInfo.Return the content infos in the AuthenticatedSafe contained in this Pfx. |
| public byte[] | |
| public byte[] | Returns: a byte array containing the encoded object.encoding style (ASN1Encoding.DER, ASN1Encoding.DL, ASN1Encoding.BER) encoding)Return a Pfx with the outer wrapper encoded as asked for. |
| public AlgorithmIdentifier | Returns: the AlgorithmIdentifier representing the MAC algorithm, null if none present.Return the algorithm identifier describing the MAC algorithm |
| public boolean | Returns: true if there is, false otherwise.Return whether or not there is MAC attached to this file. |
| public boolean | Returns: true if mac data is valid, false otherwise.provider builder for the calculator for the MAC macCalcProviderBuilder, char[] password to use password)Verify the MacData attached to the PFX is consistent with what is expected. |
| private static Pfx | |
| public Pfx |
| pfx | back to summary |
|---|---|
| private Pfx pfx | |
| PKCS12PfxPdu | back to summary |
|---|---|
| public PKCS12PfxPdu(Pfx pfx) | |
| PKCS12PfxPdu | back to summary |
|---|---|
| public PKCS12PfxPdu(byte[] pfx) throws IOException | |
| getContentInfos | back to summary |
|---|---|
| public ContentInfo[] getContentInfos() Return the content infos in the AuthenticatedSafe contained in this Pfx.
| |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded() throws IOException | |
| getEncoded | back to summary |
|---|---|
| public byte[] getEncoded(String encoding) throws IOException Return a Pfx with the outer wrapper encoded as asked for. For example, Pfx is a usually a BER encoded object, to get one with DefiniteLength encoding use: getEncoded(ASN1Encoding.DL)
| |
| getMacAlgorithmID | back to summary |
|---|---|
| public AlgorithmIdentifier getMacAlgorithmID() Return the algorithm identifier describing the MAC algorithm
| |
| hasMac | back to summary |
|---|---|
| public boolean hasMac() Return whether or not there is MAC attached to this file.
| |
| isMacValid | back to summary |
|---|---|
| public boolean isMacValid(PKCS12MacCalculatorBuilderProvider macCalcProviderBuilder, char[] password) throws PKCSException Verify the MacData attached to the PFX is consistent with what is expected.
| |
| parseBytes | back to summary |
|---|---|
| private static Pfx parseBytes(byte[] pfxEncoding) throws IOException | |
| toASN1Structure | back to summary |
|---|---|
| public Pfx toASN1Structure() Return the underlying ASN.1 object.
| |