|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--iaik.pkcs.pkcs12.Attributes
|
+--iaik.pkcs.pkcs12.SafeBag
This class implements the PKCS#12 structure SafeBag.
The
PKCS#12 Personal Information Exchange Syntax Standard defines
the SafeBag structure as collection of one particular
piece of information (a key, a certificate, ...) and some additional
attributes for forming the basic building block of a PFX PDU:
SafeBag :== SEQUENCE {
bagType OBJECT IDENTIFIER,
bagContent [0] EXPLICIT ANY DEFINED BY bagType,
bagAttributes Attributes OPTIONAL -- from X.501
}
AuthenticatedSafe,
PKCS12| Constructor Summary | |
protected |
SafeBag()
Default Constructor. |
protected |
SafeBag(java.lang.String friendlyName,
byte[] localKeyID)
Creates a new SafeBag from a friendly name and a local key ID. |
| Method Summary | |
static SafeBag |
create(ObjectID oid)
Creates a new SafeBag from a given ObjectID. |
protected static byte[] |
encodeSafeContents(SafeBag[] safeBags)
Creates the SafeContants byte array as needed by AuthenticatedSafe from an array of SafeBags. |
ObjectID |
getBagType()
Returns the type of this SafeBag. |
protected static SafeBag[] |
parseSafeContents(DerInputStream safeContents)
Parses the SafeContents data structure and returns the included SafeBags. |
static void |
register(ObjectID oid,
java.lang.Class cls)
Registers a new implementation for a PKCS#12 SafeBag defined through the given ObjectID. |
java.lang.String |
toString()
Returns a String representation of these Attributes. |
| Methods inherited from class iaik.pkcs.pkcs12.Attributes |
getAttributes,
getFriendlyName,
getLocalKeyID,
setAttributes,
setFriendlyName,
setLocalKeyID |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
protected SafeBag()
protected SafeBag(java.lang.String friendlyName,
byte[] localKeyID)
| Method Detail |
public static SafeBag create(ObjectID oid)
throws PKCSException
oid - the object id of the bag to create
public static void register(ObjectID oid,
java.lang.Class cls)
oid - the object id of the PKCS#12 SafeBag to be registeredcls - the implementing class
protected static byte[] encodeSafeContents(SafeBag[] safeBags)
throws CodingException
safeBags - the SafeBags to encode
protected static SafeBag[] parseSafeContents(DerInputStream safeContents)
throws CodingException
safeContents - the SafeContents ASN.1 structure as byte arraypublic ObjectID getBagType()
Possible values are:
ObjectIDpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||