Class ProtocolEncrKeyControl

java.lang.Object
org.bouncycastle.cert.crmf.ProtocolEncrKeyControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
JcaProtocolEncrKeyControl

public class ProtocolEncrKeyControl extends Object implements Control
Carrier for a protocol encryption key control.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProtocolEncrKeyControl(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
    Basic constructor - build from the public key to use for protocol encryption.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1ObjectIdentifier
    Return the type of this control.
    org.bouncycastle.asn1.ASN1Encodable
    Return the public key associated with this control.

    Methods inherited from class Object

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

    • ProtocolEncrKeyControl

      public ProtocolEncrKeyControl(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
      Basic constructor - build from the public key to use for protocol encryption.
      Parameters:
      publicKeyInfo - the public key to use for protocol encryption.
  • 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_protocolEncrKey
    • getValue

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