public class RegToken extends AttributeTypeAndValue implements ASN1Type
id-regCtrl-regToken OBJECT IDENTIFIER ::= { id-regCtrl 1 }
--with syntax:
RegToken ::= UTF8String
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
A regToken regCtrl contains one-time information (either based on a secret value or on knowledge) intended to be used by the CA to verify the identity of the subject prior to issuing a certificate. Upon receipt of a certification request containing a value for regToken, the receiving CA verifies the information in order to confirm the identity claimed in the certification request.
The value for regToken may be generated by the CA and provided out of band to the subscriber, or may otherwise be available to both the CA and the subscriber. The security of any out-of-band exchange should be commensurate with the risk of the CA accepting an intercepted value from someone other than the intended subscriber.
The regToken regCtrl would typically be used only for initialization of an
end entity into the PKI, whereas the authenticator regCtrl (see
Authenticator) would typically be used for initial as well as
subsequent certification requests.
In some instances of use the value for regToken could be a text string or a numeric quantity such as a random number. The value in the latter case could be encoded either as a binary quantity or as a text string representation of the binary quantity. To ensure a uniform encoding of values regardless of the nature of the quantity, the encoding of regToken SHALL be UTF8.
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for a RegToken regCtrl.
|
m_type, m_value| Constructor and Description |
|---|
RegToken(ASN1Object obj)
Creates a new
RegToken regCtrl object from an
ASN1Object. |
RegToken(java.lang.String regToken)
Creates a new
RegToken regCtrl object with the specified
component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an RegToken regCtrl structure from an
ASN1Object. |
java.lang.String |
getRegToken()
Returns the registration token.
|
ASN1Object |
toASN1Object()
Encodes this
RegToken regCtrl object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
RegToken regCtrl object. |
getType, getValuepublic static final ObjectID oid
public RegToken(java.lang.String regToken)
RegToken regCtrl object with the specified
component.regToken - the registration valuepublic RegToken(ASN1Object obj) throws CodingException
RegToken regCtrl object from an
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1 RegToken
structure.obj - the ASN.1 representation of a RegToken regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.lang.String getRegToken()
public void decode(ASN1Object obj) throws CodingException
ASN1Object.
The ASN1Object must be a complete ASN.1 AttributeTypeAndValue
structure, not simply an ASN.1 RegToken structure.decode in interface ASN1Typedecode in class AttributeTypeAndValueobj - an ASN.1 representation of a RegToken regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
RegToken regCtrl object as an
ASN1Object. The encoding produces a complete ASN.1
AttributeTypeAndValue structure, not simply an ASN.1 RegToken structure.
To retrieve only the RegToken structure use getValue().toASN1Object in interface ASN1TypetoASN1Object in class AttributeTypeAndValuepublic java.lang.String toString()
RegToken regCtrl object.toString in class AttributeTypeAndValue