public class EntrustApplicationIdentifier extends java.lang.Object implements ASN1Type
-- application identifier
EntrustApplicationIdentifierSyntax ::= SEQUENCE
{
applicationID OCTET STRING, -- format TBD
applicationName UTF8String OPTIONAL
}
entrustApplicationIdentifier OBJECT-TYPE
SYNTAX EntrustApplicationIdentifierSyntax
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 8 }
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustApplicationIdentifier.
|
| Constructor and Description |
|---|
EntrustApplicationIdentifier(ASN1Object obj)
Creates a new
EntrustApplicationIdentifier from an
ASN1Object. |
EntrustApplicationIdentifier(byte[] applicationID)
Creates a new
EntrustApplicationIdentifier object with the
specified component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustApplicationIdentifier from an
ASN1Object. |
byte[] |
getApplicationID()
Returns the application identifier.
|
java.lang.String |
getApplicationName()
Returns the application name if it has been set; otherwise
null is returned. |
void |
setApplicationName(java.lang.String applicationName)
Sets the application name.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustApplicationIdentifier object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustApplicationIdentifier object. |
public static final ObjectID oid
public EntrustApplicationIdentifier(byte[] applicationID)
EntrustApplicationIdentifier object with the
specified component.applicationID - identifier for the applicationpublic EntrustApplicationIdentifier(ASN1Object obj) throws CodingException
EntrustApplicationIdentifier from an
ASN1Object. The ASN1Object must be an
EntrustApplicationIdentifierSyntax structure.obj - the ASN.1 representation of an EntrustApplicationIdentifierSyntax
structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic byte[] getApplicationID()
public java.lang.String getApplicationName()
null is returned.public void setApplicationName(java.lang.String applicationName)
applicationName - the applicationName componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be an EntrustApplicationIdentifierSyntax
structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustApplicationIdentifierSyntax
structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.lang.String toString()
EntrustApplicationIdentifier object.toString in class java.lang.Objectpublic ASN1Object toASN1Object()
EntrustApplicationIdentifier object as an
ASN1Object.toASN1Object in interface ASN1Type