public class SafeContentsBag extends SafeBag
SafeBag
,
Attributes
Modifier | Constructor and Description |
---|---|
protected |
SafeContentsBag()
Default constructor.
|
|
SafeContentsBag(SafeBag[] bags)
Creates a new SafeContentsBag from the given SafeBags.
|
|
SafeContentsBag(SafeBag[] bags,
java.lang.String friendlyName,
byte[] localKeyID)
Creates a new SafeContentsBag from the given
SafeBags, a friendlyName and a locakKeyID.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(ASN1Object obj)
Decodes the SafeContentsBag given as ASN1Object.
|
SafeBag[] |
getSafeBags()
Returns the SafeBags of this SafeContentsBag.
|
ASN1Object |
toASN1Object()
Returns this SafeContentsBag as ASN1Object.
|
java.lang.String |
toString()
Returns a String representation of this SafeContentsBag.
|
create, encodeSafeContents, encodeSafeContentsAsASN1Object, getBagType, parseSafeContents, parseSafeContents, register
getAttributes, getFriendlyName, getLocalKeyID, setAttributes, setFriendlyName, setLocalKeyID
protected SafeBag[] bags
protected SafeContentsBag()
public SafeContentsBag(SafeBag[] bags)
bags
- the SafeBagspublic SafeContentsBag(SafeBag[] bags, java.lang.String friendlyName, byte[] localKeyID)
bags
- the SafeBagsfriendlyName
- the friendly namelocalKeyID
- the local key idpublic SafeBag[] getSafeBags()
public void decode(ASN1Object obj) throws CodingException
obj
- the SafeContentsBag as ASN1ObjectCodingException
- if the SafeContentsBag cannot be decodedpublic ASN1Object toASN1Object() throws CodingException
CodingException
- if an de/encoding error occurs