public class EntrustEventInfo extends java.lang.Object implements ASN1Type
EntrustEventInfoSyntax ::= SEQUENCE
{
eventTime [0] GeneralizedTime OPTIONAL,
eventReason [1] EntrustEventReason OPTIONAL,
csSyncNumber [2] INTEGER,
state [3] EntrustState OPTIONAL,
rolloverAllowed [4] BOOLEAN OPTIONAL,
newCAName [5] GeneralNames OPTIONAL, -- present if CA name changed (exported)
eventIndicator [6] INTEGER
}
entrustEventInfo OBJECT-TYPE
SYNTAX EntrustEventInfoSyntax
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 4 }
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustEventIdentifier.
|
| Constructor and Description |
|---|
EntrustEventInfo(ASN1Object obj)
Creates a new
EntrustEventInfo from an
ASN1Object. |
EntrustEventInfo(java.math.BigInteger csSyncNumber,
java.math.BigInteger eventIndicator)
Creates a new
EntrustEventInfo object with the specified
components. |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCAName(GeneralName newCAName)
Adds the new CA name to the set of new CA names.
|
void |
decode(ASN1Object obj)
Decodes an EntrustEventInfo from an
ASN1Object. |
java.math.BigInteger |
getCsSyncNumber()
Returns the certificate store synchronization number.
|
java.math.BigInteger |
getEventIndicator()
Returns the eventIndicator.
|
EntrustEventReason |
getEventReason()
Returns the reason the event ocured if it has been set; otherwise
null is returned. |
java.util.Date |
getEventTime()
Returns the time the event occured if it has been set; otherwise
null is returned. |
GeneralName[] |
getNewCAName()
Returns the new name of the CA if it has been set; otherwise
null is returned. |
java.lang.Boolean |
getRolloverAllowed()
Returns an indicator for whether roll-over is permitted if it has been set;
otherwise
null is returned. |
EntrustState |
getState()
Returns the state if it has been set; otherwise
null is
returned. |
void |
setEventReason(EntrustEventReason eventReason)
Sets the reason the event occured.
|
void |
setEventTime(java.util.Date eventTime)
Sets the time the event occured.
|
void |
setNewCAName(GeneralName[] newCAName)
Sets the set of new CA names.
|
void |
setRolloverAllowed(java.lang.Boolean rolloverAllowed)
Sets an indicator for whether roll-over is permitted.
|
void |
setState(EntrustState state)
Sets the state.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustEventInfo object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustEventInfo object. |
public static final ObjectID oid
public EntrustEventInfo(java.math.BigInteger csSyncNumber,
java.math.BigInteger eventIndicator)
EntrustEventInfo object with the specified
components.csSyncNumber - the certificate store synchronization numbereventIndicator - the event indicatorpublic EntrustEventInfo(ASN1Object obj) throws CodingException
EntrustEventInfo from an
ASN1Object. The ASN1Object must be an
EntrustEventInfoSyntax structure.obj - the ASN.1 representation of an EntrustEventInfoSyntax structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.util.Date getEventTime()
null is returned.public EntrustEventReason getEventReason()
null is returned.public java.math.BigInteger getCsSyncNumber()
public EntrustState getState()
null is
returned.public java.lang.Boolean getRolloverAllowed()
null is returned.public GeneralName[] getNewCAName()
null is returned.public java.math.BigInteger getEventIndicator()
public void setEventTime(java.util.Date eventTime)
eventTime - the eventTime componentpublic void setEventReason(EntrustEventReason eventReason)
eventReason - the eventReason componentpublic void setState(EntrustState state)
state - the state componentpublic void setRolloverAllowed(java.lang.Boolean rolloverAllowed)
rolloverAllowed - the rolloverAllowed componentpublic void setNewCAName(GeneralName[] newCAName)
If the set of new CA names is not null, then it must consist
of one or more GeneralName objects.
newCAName - the newCAName componentpublic void addNewCAName(GeneralName newCAName)
If newCAName is null, it is not added.
newCAName - a new CA name to be added to the newCAName componentpublic void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be an EntrustEventInfoSyntax structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustEventInfoSyntax structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustEventInfo object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustEventInfo object.toString in class java.lang.Object