public class EntrustCAProtEncPos extends EntrustValueHintEntry
EncrypteValue.valueHint entry as defined in the Entrust
OID Registry.
EntrustCAProtEncPosSyntax ::= INTEGER
entrustCAProtEncPos OBJECT-TYPE
SYNTAX EntrustCAProtEncPosSyntax
ACCESS read-write
STATUS mandatory
::= { 2 16 840 1 114027 50 100 1 }
This entry can be used by a client to indicate which CA protocol encryption
certificate was used to protect the EncryptedValue. When one of
the additional CA protocol encryption certificates is used (refer to
EntrustCAProtEncCerts), this entry must be present and contain the
index for the CA protocol encryption certificate that was used. The CA
certificate from CAProtEncCert is identified by index 0. The first CA
certificate from EntrustCAProtEncCerts is identified by index 1,
the second by index 2, and so on.
For backwards compatibility, when the CAProtEncCert certificate
is used, the entrustCAProtEncPos PKIX-CMP
EncrypteValue.valueHint entry is optional. When this entry is
not present, the CA assumes that the CAProtEncCert certificate
was used.
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for entrustCAProtEncPos.
|
| Constructor and Description |
|---|
EntrustCAProtEncPos(ASN1Object obj)
Creates a new
EntrustCAProtEncPos object from an
ASN1Object. |
EntrustCAProtEncPos(int caProtEncPos)
Creates a new
EntrustCAProtEncPos object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an EntrustCAProtEncPos object from an
ASN1Object. |
int |
getCAProtEncPos()
Returns the CA protocol encryption certificate position.
|
ASN1Object |
toASN1Object()
Encodes this
EntrustCAProtEncPos object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
EntrustCAProtEncPos object. |
public static final ObjectID oid
public EntrustCAProtEncPos(int caProtEncPos)
EntrustCAProtEncPos object with the specified
component.caProtEncPos - the CA protocol encryption certificate positionpublic EntrustCAProtEncPos(ASN1Object obj) throws CodingException
EntrustCAProtEncPos object from an
ASN1Object. The ASN1Object must be an
EntrustCAProtEncPosSyntax structure.obj - the ASN.1 representation of an EntrustCAProtEncPosSyntax
structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic int getCAProtEncPos()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be an EntrustCAProtEncPosSyntax
structure.obj - an ASN.1 representation of a EntrustCAProtEncPosSyntax
structureCodingException - thrown if an errors occurs while decoding the
ANS1Objectpublic java.lang.String toString()
EntrustCAProtEncPos object.toString in class java.lang.Objectpublic ASN1Object toASN1Object()
EntrustCAProtEncPos object as an
ASN1Object.