Skip navigation links
oracle.security.crypto.cmp.attribute
Class EncryptedPrivKeyArchOpt
java.lang.Object
oracle.security.crypto.cert.AttributeTypeAndValue
oracle.security.crypto.cmp.attribute.RegistrationControl
oracle.security.crypto.cmp.attribute.PKIArchiveOptionRegControl
oracle.security.crypto.cmp.attribute.EncryptedPrivKeyArchOpt
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable
-
public class EncryptedPrivKeyArchOpt
- extends PKIArchiveOptionRegControl
CRMF archive option registration control containing the encrypted private key to be archived.
- See Also:
- Serialized Form
Method Summary |
protected void |
decodeValue()
Decodes the superclass AttributeTypeAndValue 's ASN1Object value to populate this control's fields. |
protected void |
encodeValue()
Encodes this control's fields as an ASN1Object for the superclass AttributeTypeAndValue 's value. |
EncryptedValue |
getEncryptedKey()
|
Methods inherited from class oracle.security.crypto.cert.AttributeTypeAndValue |
getType, getValue, readExternal, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptedPrivKeyArchOpt
public EncryptedPrivKeyArchOpt()
EncryptedPrivKeyArchOpt
public EncryptedPrivKeyArchOpt(EncryptedValue encryptedKey)
EncryptedPrivKeyArchOpt
public EncryptedPrivKeyArchOpt(oracle.security.crypto.cms.CMSEnvelopedDataContentInfo envelopedKey)
EncryptedPrivKeyArchOpt
public EncryptedPrivKeyArchOpt(java.io.InputStream is)
throws java.io.IOException
-
- Throws:
java.io.IOException
getEncryptedKey
public EncryptedValue getEncryptedKey()
encodeValue
protected void encodeValue()
- Description copied from class:
RegistrationControl
- Encodes this control's fields as an
ASN1Object
for the superclass AttributeTypeAndValue
's value.
Subclasses must override this method to properly test and set the RegistrationControl.encoded
field, and invoke the superclass RegistrationControl.setValue(oracle.security.crypto.asn1.ASN1Object)
method to set the encoded structure.
-
- Overrides:
encodeValue
in class RegistrationControl
decodeValue
protected void decodeValue()
- Description copied from class:
RegistrationControl
- Decodes the superclass
AttributeTypeAndValue
's ASN1Object
value to populate this control's fields.
Subclasses must override this method to invoke the superclass AttributeTypeAndValue.getValue()
method to get the structure to decode, and properly test and set the RegistrationControl.decoded
field.
-
- Overrides:
decodeValue
in class RegistrationControl
Skip navigation links
Copyright © 2005, 2009, Oracle. All rights reserved.