Top Description Fields Constructors Methods
org.bouncycastle.cert.crmf

public Class RegTokenControl

extends Object
implements Control
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cert.crmf.Control
Imports
org.bouncycastle.asn1.ASN1Encodable, .ASN1ObjectIdentifier, .ASN1UTF8String, .DERUTF8String, org.bouncycastle.asn1.crmf.CRMFObjectIdentifiers

Carrier for a registration token control.

Field Summary

Modifier and TypeField and Description
private final ASN1UTF8String
private static final ASN1ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public
RegTokenControl(ASN1UTF8String
UTF-8 string representing the token.
token
)

Basic constructor - build from a UTF-8 string representing the token.

public
RegTokenControl(String
string representing the token.
token
)

Basic constructor - build from a string representing the token.

Method Summary

Modifier and TypeMethod and Description
public ASN1ObjectIdentifier

Returns:

CRMFObjectIdentifiers.id_regCtrl_regToken
getType
()

Implements org.bouncycastle.cert.crmf.Control.getType.

Return the type of this control.
public ASN1Encodable

Returns:

a UTF8String.
getValue
()

Implements org.bouncycastle.cert.crmf.Control.getValue.

Return the token associated with this control (a UTF8String).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tokenback to summary
private final ASN1UTF8String token
typeback to summary
private static final ASN1ObjectIdentifier type

Constructor Detail

RegTokenControlback to summary
public RegTokenControl(ASN1UTF8String token)

Basic constructor - build from a UTF-8 string representing the token.

Parameters
token:ASN1UTF8String

UTF-8 string representing the token.

RegTokenControlback to summary
public RegTokenControl(String token)

Basic constructor - build from a string representing the token.

Parameters
token:String

string representing the token.

Method Detail

getTypeback to summary
public ASN1ObjectIdentifier getType()

Implements org.bouncycastle.cert.crmf.Control.getType.

Return the type of this control.

Returns:ASN1ObjectIdentifier

CRMFObjectIdentifiers.id_regCtrl_regToken

getValueback to summary
public ASN1Encodable getValue()

Implements org.bouncycastle.cert.crmf.Control.getValue.

Return the token associated with this control (a UTF8String).

Returns:ASN1Encodable

a UTF8String.