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
    Creates a SignerAttributeV2 from certifiedAttributes
    Creates a SignerAttributeV2 from signedAssertions
    SignerAttributeV2(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes)
    Creates a SignerAttributeV2 from an array of claimedAttributes
  • Method Summary

    Modifier and Type
    Method
    Description
    Parses the object and returns instance of SignerAttributeV2, null if the object has another type
    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
    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

    Methods inherited from class java.lang.Object

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

    • SignerAttributeV2

      public SignerAttributeV2(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes)
      Creates a SignerAttributeV2 from an array of claimedAttributes
      Parameters:
      claimedAttributes - array of Attributes
    • SignerAttributeV2

      public SignerAttributeV2(CertifiedAttributesV2 certifiedAttributes)
      Creates a SignerAttributeV2 from certifiedAttributes
      Parameters:
      certifiedAttributes - CertifiedAttributesV2s
    • SignerAttributeV2

      public SignerAttributeV2(SignedAssertions signedAssertions)
      Creates a SignerAttributeV2 from signedAssertions
      Parameters:
      signedAssertions - SignedAssertionss
  • Method Details

    • getInstance

      public static SignerAttributeV2 getInstance(Object o)
      Parses the object and returns instance of SignerAttributeV2, null if the object has another type
      Parameters:
      o - object representing the SignerAttributeV2
      Returns:
      SignerAttributeV2
    • 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