public class ProtocolEncrKey extends AttributeTypeAndValue implements ASN1Type
id-regCtrl-protocolEncrKey OBJECT IDENTIFIER ::= { id-regCtrl 6 }
--with syntax:
ProtocolEncrKey ::= SubjectPublicKeyInfo
AttributeTypeAndValue ::= SEQUENCE {
type OBJECT IDENTIFIER,
value ANY DEFINED BY type
}
If present, the protocolEncrKey regCtrl specifies a key the CA is to use in encrypting a response to CertReqMessages. This regCtrl can be used when a CA has information to send to the subscriber that needs to be encrypted. Such information includes a private key generated by the CA for use by the subscriber.
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
The object identifier for a ProtocolEncrKey regCtrl.
|
m_type, m_value| Constructor and Description |
|---|
ProtocolEncrKey(ASN1Object obj)
Creates a new
ProtocolEncrKey regCtrl object from an
ASN1Object. |
ProtocolEncrKey(java.security.PublicKey protocolEncrKey)
Creates a new
ProtocolEncrKey regCtrl object with the
specified component. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(ASN1Object obj)
Decodes an ProtocolEncrKey regCtrl structure from an
ASN1Object. |
java.security.PublicKey |
getProtocolEncrKey()
Returns the protocol encryption key.
|
ASN1Object |
toASN1Object()
Encodes this
ProtocolEncrKey regCtrl object as an
ASN1Object. |
java.lang.String |
toString()
Creates a text representation of the ASN.1 structure of this
ProtocolEncrKey regCtrl object. |
getType, getValuepublic static final ObjectID oid
public ProtocolEncrKey(java.security.PublicKey protocolEncrKey)
ProtocolEncrKey regCtrl object with the
specified component.protocolEncrKey - the protocol encryption keypublic ProtocolEncrKey(ASN1Object obj) throws CodingException
ProtocolEncrKey regCtrl object from an
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1 ProtocolEncrKey
structure.obj - the ASN.1 representation of a ProtocolEncrKey regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic java.security.PublicKey getProtocolEncrKey()
public void decode(ASN1Object obj) throws CodingException
ASN1Object. The ASN1Object must be a complete
ASN.1 AttributeTypeAndValue structure, not simply an ASN.1 ProtocolEncrKey
structure.decode in interface ASN1Typedecode in class AttributeTypeAndValueobj - an ASN.1 representation of a ProtocolEncrKey regCtrl structureCodingException - thrown if an errors occurs while decoding the ANS1Objectpublic ASN1Object toASN1Object()
ProtocolEncrKey regCtrl object as an
ASN1Object. The encoding produces a complete ASN.1
AttributeTypeAndValue structure, not simply an ASN.1 ProtocolEncrKey
structure. To retrieve only the ProtocolEncrKey structure use
getValue().toASN1Object in interface ASN1TypetoASN1Object in class AttributeTypeAndValuepublic java.lang.String toString()
ProtocolEncrKey regCtrl object.toString in class AttributeTypeAndValue