public class EntrustEventIdentifier extends java.lang.Object implements ASN1Type
-- entrust event server use identifier
EntrustEventIdentifierSyntax ::= SEQUENCE
{
eventPartition INTEGER,
eventPosition INTEGER OPTIONAL
}
entrustEventIdentifier OBJECT-TYPE
SYNTAX EntrustEventIdentifierSyntax
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 3 }
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustEventIdentifier.
|
| Constructor and Description |
|---|
EntrustEventIdentifier(ASN1Object obj)
Creates a new
EntrustEventIdentifier from an
ASN1Object. |
EntrustEventIdentifier(java.math.BigInteger eventPartition)
Creates a new
EntrustEventIdentifier object with the
specified component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustEventIdentifier from an
ASN1Object. |
java.math.BigInteger |
getEventPartition()
Returns the event partition.
|
java.math.BigInteger |
getEventPosition()
Returns the event position if it has been set; otherwise
null
is returned. |
void |
setEventPosition(java.math.BigInteger eventPosition)
Sets the event position.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustEventIdentifier object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustEventIdentifier object. |
public static final ObjectID oid
public EntrustEventIdentifier(java.math.BigInteger eventPartition)
EntrustEventIdentifier object with the
specified component.eventPartition - the event partitionpublic EntrustEventIdentifier(ASN1Object obj) throws CodingException
EntrustEventIdentifier from an
ASN1Object. The ASN1Object must be an
EntrustEventIdentifierSyntax structure.obj - the ASN.1 representation of an EntrustEventIdentifierSyntax structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.math.BigInteger getEventPartition()
public java.math.BigInteger getEventPosition()
null
is returned.public void setEventPosition(java.math.BigInteger eventPosition)
eventPosition - the eventPosition componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be an EntrustEventIdentifierSyntax
structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustEventIdentifierSyntax structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustEventIdentifier object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustEventIdentifier object.toString in class java.lang.Object