| Constructor and Description |
|---|
EntrustFiles()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(EntrustFileDesc aFile)
Adds a file in
EntrustFileDesc type to the file
sequence. |
void |
decode(ASN1Object object)
Parses the given
ASN1Object into
EntrustFiles type. |
byte[] |
encode()
Returns the DER-encoded bytes of this
EntrustFiles
object. |
OCTET_STRING |
getFile(ObjectID fileType)
Returns the content component of the file with
the given
fileType. |
ASN1Object |
toASN1Object()
Returns the
ASN1Object of the
EntrustFiles object. |
public void decode(ASN1Object object) throws CodingException
ASN1Object into
EntrustFiles type.
decode in interface ASN1Typeobject - the ASN1Object to be parsed.CodingException - if the ASN1Object could not be parsedpublic void addFile(EntrustFileDesc aFile)
EntrustFileDesc type to the file
sequence.
aFile - the file to be added to the sequence.public ASN1Object toASN1Object()
ASN1Object of the
EntrustFiles object.
toASN1Object in interface ASN1TypeASN1Object of the
EntrustFiles object.public byte[] encode()
EntrustFiles
object.
This method is equivalent to
DerCoder.encode( entrustFiles.toASN1Object() );
public OCTET_STRING getFile(ObjectID fileType)
fileType.
The method returns null if no file is found.
fileType - the type of file.fileType.