Bouncy Castle Cryptography Library 1.87

org.bouncycastle.cert.crmf
Class ProtocolEncrKeyControl

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

public class ProtocolEncrKeyControl
extends java.lang.Object
implements Control

Carrier for a protocol encryption key control.


Constructor Summary
ProtocolEncrKeyControl(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
          Basic constructor - build from the public key to use for protocol encryption.
 
Method Summary
 org.bouncycastle.asn1.ASN1ObjectIdentifier getType()
          Return the type of this control.
 org.bouncycastle.asn1.ASN1Encodable getValue()
          Return the public key associated with this control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.

Bouncy Castle Cryptography Library 1.87