Class EncryptionInfo

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.tsp.EncryptionInfo
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class EncryptionInfo extends org.bouncycastle.asn1.ASN1Object
Implementation of the EncryptionInfo element defined in RFC 4998:

1988 ASN.1 EncryptionInfo

EncryptionInfo ::= SEQUENCE { encryptionInfoType OBJECT IDENTIFIER, encryptionInfoValue ANY DEFINED BY encryptionInfoType }

1997-ASN.1 EncryptionInfo

EncryptionInfo ::= SEQUENCE { encryptionInfoType ENCINFO-TYPE.&id ({SupportedEncryptionAlgorithms}), encryptionInfoValue ENCINFO-TYPE.&Type ({SupportedEncryptionAlgorithms}{@encryptionInfoType}) }

ENCINFO-TYPE ::= TYPE-IDENTIFIER

SupportedEncryptionAlgorithms ENCINFO-TYPE ::= {...}

  • Constructor Details

    • EncryptionInfo

      public EncryptionInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier encryptionInfoType, org.bouncycastle.asn1.ASN1Encodable encryptionInfoValue)
  • Method Details

    • getInstance

      public static EncryptionInfo getInstance(org.bouncycastle.asn1.ASN1Object obj)
      Deprecated.
      Use getInstance(Object) instead.
    • getInstance

      public static EncryptionInfo getInstance(Object obj)
    • getInstance

      public static EncryptionInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
    • getEncryptionInfoType

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getEncryptionInfoType()
    • getEncryptionInfoValue

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

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object