Class EncryptedKey

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.crmf.EncryptedKey
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class EncryptedKey extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
EncryptedKey ::= CHOICE { encryptedValue EncryptedValue, -- deprecated envelopedData [0] EnvelopedData }
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncryptedKey(EnvelopedData envelopedData)
     
    EncryptedKey(EncryptedValue encryptedValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.bouncycastle.asn1.ASN1Encodable
     
    boolean
     
    org.bouncycastle.asn1.ASN1Primitive
    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.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getInstance

      public static EncryptedKey getInstance(Object o)
    • isEncryptedValue

      public boolean isEncryptedValue()
    • getValue

      public org.bouncycastle.asn1.ASN1Encodable getValue()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
          EncryptedKey ::= CHOICE {
              encryptedValue        EncryptedValue, -- deprecated
              envelopedData     [0] EnvelopedData }
              -- The encrypted private key MUST be placed in the envelopedData
              -- encryptedContentInfo encryptedContent OCTET STRING.
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object