public class PKCS12
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static OBJECT_IDENTIFIER |
CERT_TRUST_FLAGS_OID |
static int |
GOVT_APPROVED_CA |
static int |
INVISIBLE_CA |
static int |
NS_TRUSTED_CA |
static OBJECT_IDENTIFIER |
PKCS12_ATTRIBUTES_OID |
static OBJECT_IDENTIFIER |
PKCS12_OID |
static OBJECT_IDENTIFIER |
PKI_OID |
static int |
SEND_WARN |
static int |
TERMINAL_RECORD |
static int |
TRUSTED |
static int |
TRUSTED_CA |
static int |
TRUSTED_CLIENT_CA |
static int |
USER |
static int |
VALID_CA |
Constructor and Description |
---|
PKCS12() |
Modifier and Type | Method and Description |
---|---|
void |
addCertInfo(PKCS12CertInfo certInfo,
boolean replace) |
void |
addKeyInfo(PKCS12KeyInfo keyInfo) |
static int |
decodeFlags(java.lang.String flags) |
static java.lang.String |
encodeFlags(int flags) |
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) |
void |
removeCertInfoByFriendlyName(java.lang.String friendlyName) |
PKCS12KeyInfo |
removeKeyInfoByID(byte[] id) |
public static final OBJECT_IDENTIFIER PKI_OID
public static final OBJECT_IDENTIFIER PKCS12_OID
public static final OBJECT_IDENTIFIER PKCS12_ATTRIBUTES_OID
public static final OBJECT_IDENTIFIER CERT_TRUST_FLAGS_OID
public static final int TERMINAL_RECORD
public static final int TRUSTED
public static final int SEND_WARN
public static final int VALID_CA
public static final int TRUSTED_CA
public static final int NS_TRUSTED_CA
public static final int USER
public static final int TRUSTED_CLIENT_CA
public static final int INVISIBLE_CA
public static final int GOVT_APPROVED_CA
public static boolean isFlagEnabled(int flag, int flags)
public static java.lang.String encodeFlags(int flags)
public static int decodeFlags(java.lang.String flags) throws java.lang.Exception
java.lang.Exception
public java.util.Collection<PKCS12KeyInfo> getKeyInfos()
public void addKeyInfo(PKCS12KeyInfo keyInfo)
public PKCS12KeyInfo getKeyInfoByID(byte[] id)
public PKCS12KeyInfo removeKeyInfoByID(byte[] id)
public java.util.Collection<PKCS12CertInfo> getCertInfos()
public void addCertInfo(PKCS12CertInfo certInfo, boolean replace)
public PKCS12CertInfo getCertInfoByID(byte[] id)
public PKCS12CertInfo getCertInfoByKeyID(byte[] keyID)
public java.util.Collection<PKCS12CertInfo> getCertInfosByFriendlyName(java.lang.String friendlyName)
public void removeCertInfoByFriendlyName(java.lang.String friendlyName) throws java.lang.Exception
java.lang.Exception