Package eu.europa.esig.dss.cades
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
ConstructorDescriptionSignerAttributeV2
(CertifiedAttributesV2 certifiedAttributes) Creates aSignerAttributeV2
fromcertifiedAttributes
SignerAttributeV2
(SignedAssertions signedAssertions) Creates aSignerAttributeV2
fromsignedAssertions
SignerAttributeV2
(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes) Creates aSignerAttributeV2
from an array ofclaimedAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignerAttributeV2
Parses the object and returns instance ofSignerAttributeV2
, null if the object has another typeObject[]
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
-
Constructor Details
-
SignerAttributeV2
public SignerAttributeV2(org.bouncycastle.asn1.x509.Attribute[] claimedAttributes) Creates aSignerAttributeV2
from an array ofclaimedAttributes
- Parameters:
claimedAttributes
- array ofAttribute
s
-
SignerAttributeV2
Creates aSignerAttributeV2
fromcertifiedAttributes
- Parameters:
certifiedAttributes
-CertifiedAttributesV2
s
-
SignerAttributeV2
Creates aSignerAttributeV2
fromsignedAssertions
- Parameters:
signedAssertions
-SignedAssertions
s
-
-
Method Details
-
getInstance
Parses the object and returns instance ofSignerAttributeV2
, null if the object has another type- Parameters:
o
- object representing theSignerAttributeV2
- Returns:
SignerAttributeV2
-
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 interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-