Package org.spongycastle.asn1.esf
Class SignerAttribute
java.lang.Object
org.spongycastle.asn1.ASN1Object
org.spongycastle.asn1.esf.SignerAttribute
- All Implemented Interfaces:
org.spongycastle.asn1.ASN1Encodable,org.spongycastle.util.Encodable
public class SignerAttribute
extends org.spongycastle.asn1.ASN1Object
-
Constructor Summary
ConstructorsConstructorDescriptionSignerAttribute(org.spongycastle.asn1.x509.Attribute[] claimedAttributes) SignerAttribute(org.spongycastle.asn1.x509.AttributeCertificate certifiedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignerAttributeObject[]Return the sequence of choices - the array elements will either be of type Attribute[] or AttributeCertificate depending on what tag was used.org.spongycastle.asn1.ASN1PrimitiveSignerAttribute ::= 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.spongycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
SignerAttribute
public SignerAttribute(org.spongycastle.asn1.x509.Attribute[] claimedAttributes) -
SignerAttribute
public SignerAttribute(org.spongycastle.asn1.x509.AttributeCertificate certifiedAttributes)
-
-
Method Details
-
getInstance
-
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.spongycastle.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:
toASN1Primitivein interfaceorg.spongycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.spongycastle.asn1.ASN1Object
-