|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.crmf.Control | +--com.rsa.certj.crmf.RegistrationToken
This class holds, encodes, and decodes the Registration Token control. A RegToken control 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 that contains a value for RegToken, the receiving CA verifies the information in order to confirm the identity claimed in the certification request.
The RegToken control would typically be used only for initialization of an endentity into PKI. 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.regToken ::= UTF8String |
See Also
Fields inherited from class com.rsa.certj.crmf.Control |
AUTHENTICATOR, NON_STANDARD, OLD_CERT_ID, PKI_ARCHIVE_OPTIONS, PKI_PUBLICATION_INFO, PROTOCOL_ENCR_KEY, REG_TOKEN |
Constructor Summary |
|
RegistrationToken()
Constructs an empty |
Method Summary |
|
clone()
Gets a deeper clone than the default. |
|
boolean |
equals(Object obj)
Returns true if this object and obj contain the same RegistrationToken, returns false otherwise. |
byte[] |
getValue()
Gets the value of the Registration Token control. |
void |
setValue(byte[] value,
int offset,
int len)
Sets the value of the Registration Token control. |
Methods inherited from class com.rsa.certj.crmf.Control |
compareOID, derEncodeControlLen, getControlType, getControlTypeString, getDEREncoding, getDERLen, getInstance, getInstance, getNextBEROffset, getOID, isControlType, setEnvironment |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistrationToken()
RegistrationToken
object.Method Detail |
public void setValue(byte[] value, int offset, int len) throws CRMFException
Parameters
value | The one-time information intended to be used by the CA to verify the identity of the subject prior to issuing a certificate. | ||
offset | The offset into | ||
len | The length of the value |
Throws
CRMFException
- If the passed in value is NULLpublic byte[] getValue()
Returns
public Object clone() throws CloneNotSupportedException
Overrides
clone
in class Control
Returns
Throws
CloneNotSupportedException
- If the cloning operation
is not successful.public boolean equals(Object obj)
Overrides
equals
in class Control
Parameters
obj | The instance of RegistrationToken object |
Returns
boolean
that indicates whether
these objects are equal.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |