Class PKCS12
- java.lang.Object
-
- org.mozilla.jss.netscape.security.pkcs.PKCS12
-
public class PKCS12 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static OBJECT_IDENTIFIERCERT_TRUST_FLAGS_OIDstatic intGOVT_APPROVED_CADeprecated.Use PK11Cert.GOVT_APPROVED_CA instead.static intINVISIBLE_CADeprecated.Use PK11Cert.INVISIBLE_CA instead.static intNS_TRUSTED_CADeprecated.Use PK11Cert.NS_TRUSTED_CA instead.static OBJECT_IDENTIFIERPKCS12_ATTRIBUTES_OIDstatic OBJECT_IDENTIFIERPKCS12_OIDstatic OBJECT_IDENTIFIERPKI_OIDstatic intSEND_WARNDeprecated.Use PK11Cert.SEND_WARN instead.static intTERMINAL_RECORDDeprecated.Use PK11Cert.VALID_PEER instead.static intTRUSTEDDeprecated.Use PK11Cert.TRUSTED_PEER instead.static intTRUSTED_CADeprecated.Use PK11Cert.TRUSTED_CA instead.static intTRUSTED_CLIENT_CADeprecated.Use PK11Cert.TRUSTED_CLIENT_CA instead.static intUSERDeprecated.Use PK11Cert.USER instead.static intVALID_CADeprecated.Use PK11Cert.VALID_CA instead.
-
Constructor Summary
Constructors Constructor Description PKCS12()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddCertInfo(PKCS12CertInfo certInfo, boolean replace)voidaddKeyInfo(PKCS12KeyInfo keyInfo)static intdecodeFlags(java.lang.String flags)Deprecated.Use PK11Cert.decodeTrustFlags() instead.static java.lang.StringencodeFlags(int flags)Deprecated.Use PK11Cert.encodeTrustFlags() instead.PKCS12CertInfogetCertInfoByID(byte[] id)PKCS12CertInfogetCertInfoByKeyID(byte[] keyID)java.util.Collection<PKCS12CertInfo>getCertInfos()java.util.Collection<PKCS12CertInfo>getCertInfosByFriendlyName(java.lang.String friendlyName)PKCS12KeyInfogetKeyInfoByID(byte[] id)java.util.Collection<PKCS12KeyInfo>getKeyInfos()static booleanisFlagEnabled(int flag, int flags)Deprecated.Use PK11Cert.isTrustFlagEnabled() instead.voidremoveCertInfoByFriendlyName(java.lang.String friendlyName)PKCS12KeyInforemoveKeyInfoByID(byte[] id)
-
-
-
Field Detail
-
PKI_OID
public static final OBJECT_IDENTIFIER PKI_OID
-
PKCS12_OID
public static final OBJECT_IDENTIFIER PKCS12_OID
-
PKCS12_ATTRIBUTES_OID
public static final OBJECT_IDENTIFIER PKCS12_ATTRIBUTES_OID
-
CERT_TRUST_FLAGS_OID
public static final OBJECT_IDENTIFIER CERT_TRUST_FLAGS_OID
-
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
-
-
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.ExceptionDeprecated.Use PK11Cert.decodeTrustFlags() instead.- Throws:
java.lang.Exception
-
getKeyInfos
public java.util.Collection<PKCS12KeyInfo> getKeyInfos()
-
addKeyInfo
public void addKeyInfo(PKCS12KeyInfo keyInfo)
-
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
-
-