Class RegTokenControl

java.lang.Object
org.bouncycastle.cert.crmf.RegTokenControl
All Implemented Interfaces:
Control

public class RegTokenControl extends Object implements Control
Carrier for a registration token control.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Basic constructor - build from a string representing the token.
    RegTokenControl(org.bouncycastle.asn1.ASN1UTF8String token)
    Basic constructor - build from a UTF-8 string representing the token.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return the type of this control.
    org.bouncycastle.asn1.ASN1Encodable
    Return the token associated with this control (a UTF8String).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegTokenControl

      public RegTokenControl(org.bouncycastle.asn1.ASN1UTF8String token)
      Basic constructor - build from a UTF-8 string representing the token.
      Parameters:
      token - UTF-8 string representing the token.
    • RegTokenControl

      public RegTokenControl(String token)
      Basic constructor - build from a string representing the token.
      Parameters:
      token - string representing the token.
  • Method Details

    • getType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
      Return the type of this control.
      Specified by:
      getType in interface Control
      Returns:
      CRMFObjectIdentifiers.id_regCtrl_regToken
    • getValue

      public org.bouncycastle.asn1.ASN1Encodable getValue()
      Return the token associated with this control (a UTF8String).
      Specified by:
      getValue in interface Control
      Returns:
      a UTF8String.