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_IDENTIFIER
CERT_TRUST_FLAGS_OID
static int
GOVT_APPROVED_CA
Deprecated.Use PK11Cert.GOVT_APPROVED_CA instead.static int
INVISIBLE_CA
Deprecated.Use PK11Cert.INVISIBLE_CA instead.static int
NS_TRUSTED_CA
Deprecated.Use PK11Cert.NS_TRUSTED_CA instead.static OBJECT_IDENTIFIER
PKCS12_ATTRIBUTES_OID
static OBJECT_IDENTIFIER
PKCS12_OID
static OBJECT_IDENTIFIER
PKI_OID
static int
SEND_WARN
Deprecated.Use PK11Cert.SEND_WARN instead.static int
TERMINAL_RECORD
Deprecated.Use PK11Cert.VALID_PEER instead.static int
TRUSTED
Deprecated.Use PK11Cert.TRUSTED_PEER instead.static int
TRUSTED_CA
Deprecated.Use PK11Cert.TRUSTED_CA instead.static int
TRUSTED_CLIENT_CA
Deprecated.Use PK11Cert.TRUSTED_CLIENT_CA instead.static int
USER
Deprecated.Use PK11Cert.USER instead.static int
VALID_CA
Deprecated.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 void
addCertInfo(PKCS12CertInfo certInfo, boolean replace)
void
addKeyInfo(PKCS12KeyInfo keyInfo)
static int
decodeFlags(java.lang.String flags)
Deprecated.Use PK11Cert.decodeTrustFlags() instead.static java.lang.String
encodeFlags(int flags)
Deprecated.Use PK11Cert.encodeTrustFlags() instead.PKCS12CertInfo
getCertInfoByID(byte[] id)
PKCS12CertInfo
getCertInfoByKeyID(byte[] keyID)
java.util.Collection<PKCS12CertInfo>
getCertInfos()
java.util.Collection<PKCS12CertInfo>
getCertInfosByFriendlyName(java.lang.String friendlyName)
PKCS12KeyInfo
getKeyInfoByID(byte[] id)
java.util.Collection<PKCS12KeyInfo>
getKeyInfos()
static boolean
isFlagEnabled(int flag, int flags)
Deprecated.Use PK11Cert.isTrustFlagEnabled() instead.void
removeCertInfoByFriendlyName(java.lang.String friendlyName)
PKCS12KeyInfo
removeKeyInfoByID(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.Exception
Deprecated.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
-
-