Class OriginatorIdentifierOrKey

  • All Implemented Interfaces:
    ASN1Choice, ASN1Encodable, Encodable

    public class OriginatorIdentifierOrKey
    extends ASN1Object
    implements ASN1Choice
    RFC 5652: Content encryption key delivery mechanisms.
     OriginatorIdentifierOrKey ::= CHOICE {
         issuerAndSerialNumber IssuerAndSerialNumber,
         subjectKeyIdentifier [0] SubjectKeyIdentifier,
         originatorKey [1] OriginatorPublicKey 
     }
    
     SubjectKeyIdentifier ::= OCTET STRING
     
    • Constructor Detail

      • OriginatorIdentifierOrKey

        public OriginatorIdentifierOrKey​(ASN1OctetString id)
        Deprecated.
        use version taking a SubjectKeyIdentifier
      • OriginatorIdentifierOrKey

        public OriginatorIdentifierOrKey​(ASN1Primitive id)
        Deprecated.
        use more specific version
    • Method Detail

      • getInstance

        public static OriginatorIdentifierOrKey getInstance​(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:
        java.lang.IllegalArgumentException - if the object held by the tagged object cannot be converted.
      • getInstance

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

        Accepted inputs:

        Parameters:
        o - the object we want converted.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.