Class Attributes

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class Attributes
    extends ASN1Object
    RFC 5652 defines 5 "SET OF Attribute" entities with 5 different names. This is common implementation for them all:
       SignedAttributes      ::= SET SIZE (1..MAX) OF Attribute
       UnsignedAttributes    ::= SET SIZE (1..MAX) OF Attribute
       UnprotectedAttributes ::= SET SIZE (1..MAX) OF Attribute
       AuthAttributes        ::= SET SIZE (1..MAX) OF Attribute
       UnauthAttributes      ::= SET SIZE (1..MAX) OF Attribute
    
     Attributes ::=
       SET SIZE(1..MAX) OF Attribute
     
    • Method Detail

      • getInstance

        public static Attributes getInstance​(java.lang.Object obj)
        Return an Attribute set object from the given object.

        Accepted inputs:

        • null → null
        • Attributes object
        • ASN1Set input formats with Attributes structure inside
        Parameters:
        obj - the object we want converted.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getAttributes

        public Attribute[] getAttributes()