Class OriginatorIdentifierOrKey

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

public class OriginatorIdentifierOrKey extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice
RFC 5652: Content encryption key delivery mechanisms.
 OriginatorIdentifierOrKey ::= CHOICE {
     issuerAndSerialNumber IssuerAndSerialNumber,
     subjectKeyIdentifier [0] SubjectKeyIdentifier,
     originatorKey [1] OriginatorPublicKey 
 }

 SubjectKeyIdentifier ::= OCTET STRING
 
  • Constructor Details

    • OriginatorIdentifierOrKey

      public OriginatorIdentifierOrKey(IssuerAndSerialNumber id)
    • OriginatorIdentifierOrKey

      public OriginatorIdentifierOrKey(org.bouncycastle.asn1.ASN1OctetString id)
      Deprecated.
      use version taking a SubjectKeyIdentifier
    • OriginatorIdentifierOrKey

      public OriginatorIdentifierOrKey(org.bouncycastle.asn1.x509.SubjectKeyIdentifier id)
    • OriginatorIdentifierOrKey

      public OriginatorIdentifierOrKey(OriginatorPublicKey id)
    • OriginatorIdentifierOrKey

      public OriginatorIdentifierOrKey(org.bouncycastle.asn1.ASN1Primitive id)
      Deprecated.
      use more specific version
  • Method Details

    • getInstance

      public static OriginatorIdentifierOrKey getInstance(org.bouncycastle.asn1.ASN1TaggedObject o, boolean explicit)
      Return an OriginatorIdentifierOrKey object from a tagged object.
      Parameters:
      o - the tagged object holding the object we want.
      explicit - true if the object is meant to be explicitly tagged false otherwise.
      Throws:
      IllegalArgumentException - if the object held by the tagged object cannot be converted.
    • getInstance

      public static OriginatorIdentifierOrKey getInstance(Object o)
      Return an OriginatorIdentifierOrKey object from the given object.

      Accepted inputs:

      Parameters:
      o - the object we want converted.
      Throws:
      IllegalArgumentException - if the object cannot be converted.
    • getId

      public org.bouncycastle.asn1.ASN1Encodable getId()
    • getIssuerAndSerialNumber

      public IssuerAndSerialNumber getIssuerAndSerialNumber()
    • getSubjectKeyIdentifier

      public org.bouncycastle.asn1.x509.SubjectKeyIdentifier getSubjectKeyIdentifier()
    • getOriginatorKey

      public OriginatorPublicKey getOriginatorKey()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Produce an object suitable for an ASN1OutputStream.
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object