Class SignerAttribute

  • All Implemented Interfaces:
    org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

    public class SignerAttribute
    extends org.bouncycastle.asn1.ASN1Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SignerAttribute​(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes)  
      SignerAttribute​(org.bouncycastle.asn1.x509.AttributeCertificate certifiedAttributes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SignerAttribute getInstance​(java.lang.Object o)  
      java.lang.Object[] getValues()
      Return the sequence of choices - the array elements will either be of type Attribute[] or AttributeCertificate depending on what tag was used.
      org.bouncycastle.asn1.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.
      • Methods inherited from class org.bouncycastle.asn1.ASN1Object

        encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SignerAttribute

        public SignerAttribute​(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes)
      • SignerAttribute

        public SignerAttribute​(org.bouncycastle.asn1.x509.AttributeCertificate certifiedAttributes)
    • Method Detail

      • getInstance

        public static SignerAttribute getInstance​(java.lang.Object o)
      • getValues

        public java.lang.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 org.bouncycastle.asn1.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 org.bouncycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.bouncycastle.asn1.ASN1Object