public class EntrustFileDesc extends java.lang.Object implements ASN1Type
EntrustFileDesc class implements the
ASN1Object for EntrustFileDesc.
EntrustFileDesc ::= SEQUENCE
{
fileType EntrustFileContentType,
fileOp EntrustFileOperation,
content OCTET_STRING
}
fileType is the type of file being operated upon.
fileOp specifies the operation to be performed on the file.
content represents the contents of the file to be added
or replaced in the Directory.
| Constructor and Description |
|---|
EntrustFileDesc()
Default constructor.
|
EntrustFileDesc(ObjectID fileType,
ENUMERATED entrustFileOperation,
OCTET_STRING content)
Creates an
EntrustFileDesc object using the given
arguments. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Parses the given
ASN1Object into
EntrustFileDesc type. |
void |
setContent(OCTET_STRING content)
Sets the file content.
|
void |
setFileOperation(ENUMERATED fileOp)
Sets the operation to be performed on the file.
|
void |
setFileType(ObjectID fileType)
Sets the file type.
|
ASN1Object |
toASN1Object()
Returns the
ASN1Object of this
EntrustFileDesc object. |
public EntrustFileDesc()
public EntrustFileDesc(ObjectID fileType, ENUMERATED entrustFileOperation, OCTET_STRING content) throws CodingException
EntrustFileDesc object using the given
arguments.
fileType - the type of file.entrustFileOperation - the operation to be performed on the file.content - the file content.CodingExceptionpublic void setFileType(ObjectID fileType)
fileType - the file type.public void setFileOperation(ENUMERATED fileOp)
For example:
setFileOperation(EntrustFileOperation.REPLACE) or setFileOperation(EntrustFileOperation.DELETE)
fileOp - the operationpublic void setContent(OCTET_STRING content)
content - the actual file content.public ASN1Object toASN1Object()
ASN1Object of this
EntrustFileDesc object.
toASN1Object in interface ASN1TypeASN1Object of this
EntrustFileDesc object.public void decode(ASN1Object obj) throws CodingException
ASN1Object into
EntrustFileDesc type.
decode in interface ASN1Typeobj - the ASN1Object to be parsed.CodingException - if the ASN1Object could not be parsed