Bouncy Castle Cryptography Library 1.46

org.bouncycastle.asn1.crmf
Class EncryptedKey

java.lang.Object
  extended by org.bouncycastle.asn1.ASN1Encodable
      extended by org.bouncycastle.asn1.crmf.EncryptedKey
All Implemented Interfaces:
ASN1Choice, DEREncodable

public class EncryptedKey
extends ASN1Encodable
implements ASN1Choice


Field Summary
 
Fields inherited from class org.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
EncryptedKey(EncryptedValue encryptedValue)
           
EncryptedKey(EnvelopedData envelopedData)
           
 
Method Summary
static EncryptedKey getInstance(java.lang.Object o)
           
 ASN1Encodable getValue()
           
 boolean isEncryptedValue()
           
 DERObject toASN1Object()
           EncryptedKey ::= CHOICE { encryptedValue EncryptedValue, -- deprecated envelopedData [0] EnvelopedData } -- The encrypted private key MUST be placed in the envelopedData -- encryptedContentInfo encryptedContent OCTET STRING.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedKey

public EncryptedKey(EnvelopedData envelopedData)

EncryptedKey

public EncryptedKey(EncryptedValue encryptedValue)
Method Detail

getInstance

public static EncryptedKey getInstance(java.lang.Object o)

isEncryptedValue

public boolean isEncryptedValue()

getValue

public ASN1Encodable getValue()

toASN1Object

public DERObject toASN1Object()
    EncryptedKey ::= CHOICE {
        encryptedValue        EncryptedValue, -- deprecated
        envelopedData     [0] EnvelopedData }
        -- The encrypted private key MUST be placed in the envelopedData
        -- encryptedContentInfo encryptedContent OCTET STRING.
 

Specified by:
toASN1Object in class ASN1Encodable

Bouncy Castle Cryptography Library 1.46