Class SignerAttributeV2

java.lang.Object
org.bouncycastle.asn1.ASN1Object
eu.europa.esig.dss.cades.SignerAttributeV2
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class SignerAttributeV2
extends org.bouncycastle.asn1.ASN1Object
Basic support of ETSI EN 319 122-1 V1.1.1 chapter 5.2.6.1 Based on org.bouncycastle.asn1.esf.SignerAttribute Note : signedAssertions are not supported Quote ETSI : The definition of specific signedAssertions is outside of the scope of the present document
  • Constructor Summary

    Constructors 
    Constructor Description
    SignerAttributeV2​(CertifiedAttributesV2 certifiedAttributes)  
    SignerAttributeV2​(SignedAssertions signedAssertions)  
    SignerAttributeV2​(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes)  
  • Method Summary

    Modifier and Type Method Description
    static SignerAttributeV2 getInstance​(Object o)  
    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()
    SignerAttributeV2 ::= SEQUENCE { claimedAttributes [0] ClaimedAttributes OPTIONAL, certifiedAttributesV2 [1] CertifiedAttributesV2 OPTIONAL, signedAssertions [2] SignedAssertions OPTIONAL }

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getInstance

      public static SignerAttributeV2 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 org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
        SignerAttributeV2 ::= SEQUENCE {
                      claimedAttributes [0] ClaimedAttributes OPTIONAL,
                      certifiedAttributesV2 [1] CertifiedAttributesV2 OPTIONAL,
                      signedAssertions [2] SignedAssertions OPTIONAL
              }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object