public class EntrustReqReason extends java.lang.Object implements ASN1Type
entrustReqReason OBJECT-TYPE
SYNTAX EntrustEventReason
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 11}
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for an EntrustReqReason.
|
| Constructor and Description |
|---|
EntrustReqReason(ASN1Object obj)
Creates a new
EntrustReqReason from an ASN1Object. |
EntrustReqReason(EntrustEventReason reqReason)
Creates a new
EntrustReqReason object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustReqReason from an
ASN1Object. |
EntrustEventReason |
getReqReason()
Returns the request reason.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustReqReason object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustReqReason object. |
public static final ObjectID oid
public EntrustReqReason(EntrustEventReason reqReason)
EntrustReqReason object with the specified
component.reqReason - the request reasonpublic EntrustReqReason(ASN1Object obj) throws CodingException
EntrustReqReason from an ASN1Object.
The ASN1Object must be an EntrustReqReason structure.obj - the ASN.1 representation of an EntrustReqReason structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic EntrustEventReason getReqReason()
public void decode(ASN1Object obj) throws CodingException
ASN1Object. The
ASN1Object must be an EntrustReqReason structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustReqReason structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustReqReason object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustReqReason object.toString in class java.lang.Object