Class SignerAttribute

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.esf.SignerAttribute
All Implemented Interfaces:
ASN1Encodable, Encodable

public class SignerAttribute extends ASN1Object
  • Constructor Details

    • SignerAttribute

      public SignerAttribute(Attribute[] claimedAttributes)
    • SignerAttribute

      public SignerAttribute(AttributeCertificate certifiedAttributes)
  • Method Details

    • getInstance

      public static SignerAttribute getInstance(Object o)
    • getValues

      public Object[] getValues()
      Return the sequence of choices - the array elements will either be of type Attribute[] or AttributeCertificate depending on what tag was used.
      Returns:
      array of choices.
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
        SignerAttribute ::= SEQUENCE OF CHOICE {
            claimedAttributes   [0] ClaimedAttributes,
            certifiedAttributes [1] CertifiedAttributes }
      
        ClaimedAttributes ::= SEQUENCE OF Attribute
        CertifiedAttributes ::= AttributeCertificate -- as defined in RFC 3281: see clause 4.1.
       
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.