public class EntrustState extends java.lang.Object implements ASN1Type
EntrustState ::= ENUMERATED
{
added (1),
activated (2),
disabled (3),
keyrecover (4),
exporthold (5),
exported (6),
reserved (7),
import (8),
importkr (9)
}
| Modifier and Type | Field and Description |
|---|---|
static EntrustState |
activated
EntrustState - activated.
|
static EntrustState |
added
EntrustState - added.
|
static EntrustState |
disabled
EntrustState - disabled.
|
static EntrustState |
exported
EntrustState - exported.
|
static EntrustState |
exporthold
EntrustState - exporthold.
|
static EntrustState |
import_
EntrustState - import.
|
static EntrustState |
importkr
EntrustState - importkr.
|
static EntrustState |
keyrecover
EntrustState - keyrecover.
|
static EntrustState |
reserved
EntrustState - reserved.
|
static java.util.Map |
s_stateNames |
| Constructor and Description |
|---|
EntrustState(ASN1Object obj)
Creates a new
EntrustState from an ASN1Object. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustState from an
ASN1Object. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
int |
intValue()
Returns the state as an int.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustState object as an
ASN1Object. |
java.lang.String |
toMessageString()
Creates a message string that represents the contents of this
EntrustState object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustState object. |
public static java.util.Map s_stateNames
public static final EntrustState added
public static final EntrustState activated
public static final EntrustState disabled
public static final EntrustState keyrecover
public static final EntrustState exporthold
public static final EntrustState exported
public static final EntrustState reserved
public static final EntrustState import_
public static final EntrustState importkr
public EntrustState(ASN1Object obj) throws CodingException
EntrustState from an ASN1Object.
The ASN1Object must be an EntrustState structure.obj - the ASN.1 representation of an EntrustState structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic int intValue()
public void decode(ASN1Object obj) throws CodingException
ASN1Object. The
ASN1Object must be an EntrustState structure.decode in interface ASN1Typeobj - an ASN.1 representation of a EntrustState structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
EntrustState object as an
ASN1Object.toASN1Object in interface ASN1Typepublic java.lang.String toString()
EntrustState object.toString in class java.lang.Objectpublic java.lang.String toMessageString()
EntrustState object.
This method can be used to create messages that can be returned in exceptions.
public boolean equals(java.lang.Object obj)
Two EntrustState objects are equal only if the state they
represent are identical.
equals in class java.lang.Objectobj - the reference object with which to comparetrue if the objects are "equal"; false
otherwise