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