Class PKCS12


  • public class PKCS12
    extends java.lang.Object
    • Field Detail

      • TERMINAL_RECORD

        @Deprecated
        public static final int TERMINAL_RECORD
        Deprecated.
        Use PK11Cert.VALID_PEER instead.
        See Also:
        Constant Field Values
      • TRUSTED

        @Deprecated
        public static final int TRUSTED
        Deprecated.
        Use PK11Cert.TRUSTED_PEER instead.
        See Also:
        Constant Field Values
      • SEND_WARN

        @Deprecated
        public static final int SEND_WARN
        Deprecated.
        Use PK11Cert.SEND_WARN instead.
        See Also:
        Constant Field Values
      • VALID_CA

        @Deprecated
        public static final int VALID_CA
        Deprecated.
        Use PK11Cert.VALID_CA instead.
        See Also:
        Constant Field Values
      • TRUSTED_CA

        @Deprecated
        public static final int TRUSTED_CA
        Deprecated.
        Use PK11Cert.TRUSTED_CA instead.
        See Also:
        Constant Field Values
      • NS_TRUSTED_CA

        @Deprecated
        public static final int NS_TRUSTED_CA
        Deprecated.
        Use PK11Cert.NS_TRUSTED_CA instead.
        See Also:
        Constant Field Values
      • USER

        @Deprecated
        public static final int USER
        Deprecated.
        Use PK11Cert.USER instead.
        See Also:
        Constant Field Values
      • TRUSTED_CLIENT_CA

        @Deprecated
        public static final int TRUSTED_CLIENT_CA
        Deprecated.
        Use PK11Cert.TRUSTED_CLIENT_CA instead.
        See Also:
        Constant Field Values
      • INVISIBLE_CA

        @Deprecated
        public static final int INVISIBLE_CA
        Deprecated.
        Use PK11Cert.INVISIBLE_CA instead.
        See Also:
        Constant Field Values
      • GOVT_APPROVED_CA

        @Deprecated
        public static final int GOVT_APPROVED_CA
        Deprecated.
        Use PK11Cert.GOVT_APPROVED_CA instead.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PKCS12

        public PKCS12()
    • Method Detail

      • isFlagEnabled

        @Deprecated
        public static boolean isFlagEnabled​(int flag,
                                            int flags)
        Deprecated.
        Use PK11Cert.isTrustFlagEnabled() instead.
      • encodeFlags

        @Deprecated
        public static java.lang.String encodeFlags​(int flags)
        Deprecated.
        Use PK11Cert.encodeTrustFlags() instead.
      • decodeFlags

        @Deprecated
        public static int decodeFlags​(java.lang.String flags)
                               throws java.lang.Exception
        Deprecated.
        Use PK11Cert.decodeTrustFlags() instead.
        Throws:
        java.lang.Exception
      • getKeyInfos

        public java.util.Collection<PKCS12KeyInfo> getKeyInfos()
      • getKeyInfoByID

        public PKCS12KeyInfo getKeyInfoByID​(byte[] id)
      • removeKeyInfoByID

        public PKCS12KeyInfo removeKeyInfoByID​(byte[] id)
      • getCertInfos

        public java.util.Collection<PKCS12CertInfo> getCertInfos()
      • addCertInfo

        public void addCertInfo​(PKCS12CertInfo certInfo,
                                boolean replace)
      • getCertInfoByID

        public PKCS12CertInfo getCertInfoByID​(byte[] id)
      • getCertInfoByKeyID

        public PKCS12CertInfo getCertInfoByKeyID​(byte[] keyID)
      • getCertInfosByFriendlyName

        public java.util.Collection<PKCS12CertInfo> getCertInfosByFriendlyName​(java.lang.String friendlyName)
      • removeCertInfoByFriendlyName

        public void removeCertInfoByFriendlyName​(java.lang.String friendlyName)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception