All Packages Class Hierarchy This Package Previous Next Index
Class iaik.pkcs.PKCS12SafeBag
java.lang.Object
|
+----iaik.pkcs.PKCS12SafeBag
- public class PKCS12SafeBag
- extends Object
This class implements a PKCS#12 SafeBag.
-
PKCS12SafeBag()
- Default constructor.
-
PKCS12SafeBag(ASN1Object)
- Creates a PKCS#12 object from a ASN1Object.
-
getBagContent()
- Returns the content of this bag.
-
getBagType()
- Returns the ObjectID of the type of this bag.
-
toASN1Object()
- Returns this PKCS#12 object as ASN1Object.
-
toString()
- Returns a string that represents the contents of the extensions.
PKCS12SafeBag
public PKCS12SafeBag()
- Default constructor. Creates an empty object.
PKCS12SafeBag
public PKCS12SafeBag(ASN1Object obj) throws PKCSException
- Creates a PKCS#12 object from a ASN1Object.
- Parameters:
- obj - the PKCS#12 object as a ASN1Object
- Throws: PKCSException
- if the ASN1Object could not be parsed
getBagType
public ObjectID getBagType()
- Returns the ObjectID of the type of this bag.
Possible values are:
- ObjectID.pkcs12_keyBag
- ObjectID.pkcs12_pkcs8ShroudedKeyBag
- ObjectID.pkcs12_certBag
- ObjectID.pkcs12_crlBag
- ObjectID.pkcs12_secretBag
- ObjectID.pkcs12_safeContentsBag
- Returns:
- the type of this bag
getBagContent
public Object getBagContent()
- Returns the content of this bag.
- Returns:
- the content of this bag
toASN1Object
public ASN1Object toASN1Object()
- Returns this PKCS#12 object as ASN1Object.
- Returns:
- this PKCS#12 object as ASN1Object
toString
public String toString()
- Returns a string that represents the contents of the extensions.
- Returns:
- the string representation
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index