|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.pkcs.PKCS12SafeBag
Holding class for a PKCS#12 SafeBag (RFC 7292). getBagValue() returns a typed view
of the payload appropriate to getType().
| Field Summary | |
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
friendlyNameAttribute
Standard attribute OID. |
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
localKeyIdAttribute
Standard attribute OID. |
| Constructor Summary | |
PKCS12SafeBag(org.bouncycastle.asn1.pkcs.SafeBag safeBag)
Wrap an existing parsed SafeBag ASN.1 structure. |
|
| Method Summary | |
org.bouncycastle.asn1.pkcs.Attribute[] |
getAttributes()
Return the bag attributes (e.g. friendlyName, localKeyId) attached to this bag. |
java.lang.Object |
getBagValue()
Return the bag value as a typed object appropriate to getType():
pkcs8ShroudedKeyBag → PKCS8EncryptedPrivateKeyInfo, certBag →
X509CertificateHolder, keyBag → PrivateKeyInfo,
crlBag → X509CRLHolder, secretBag → PKCS12SecretBag. |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getType()
Return the BagId giving the type of content in the bag. |
org.bouncycastle.asn1.pkcs.SafeBag |
toASN1Structure()
Return the underlying ASN.1 structure for this safe bag. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier friendlyNameAttribute
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier localKeyIdAttribute
| Constructor Detail |
public PKCS12SafeBag(org.bouncycastle.asn1.pkcs.SafeBag safeBag)
safeBag - the underlying SafeBag.| Method Detail |
public org.bouncycastle.asn1.pkcs.SafeBag toASN1Structure()
public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
public org.bouncycastle.asn1.pkcs.Attribute[] getAttributes()
public java.lang.Object getBagValue()
getType():
pkcs8ShroudedKeyBag → PKCS8EncryptedPrivateKeyInfo, certBag →
X509CertificateHolder, keyBag → PrivateKeyInfo,
crlBag → X509CRLHolder, secretBag → PKCS12SecretBag. Other types are
returned as their raw ASN.1 encoding.
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||