public class SignaturePolicyQualifierInfo
extends java.lang.Object
implements iaik.asn1.ASN1Type
SignaturePolicyIdentifier
.
The ASN.1 structure is as following:
SigPolicyQualifierInfo ::= SEQUENCE {
sigPolicyQualifierId SigPolicyQualifierId,
sigQualifier ANY DEFINED BY sigPolicyQualifierId }
SigPolicyQualifierId ::= OBJECT IDENTIFIER
Constructor and Description |
---|
SignaturePolicyQualifierInfo(iaik.asn1.ASN1Object obj)
Creates an SignaturePolicyQualifierInfo from its ASN.1 representation.
|
SignaturePolicyQualifierInfo(iaik.asn1.ObjectID sigPolicyQualifierID,
iaik.asn1.ASN1Object sigPolicyQualifierValue)
Constructor taking the policy qualifier's ID and its value as ASN.1 object.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(iaik.asn1.ASN1Object obj)
Decodes the given ASN.1 SignaturePolicyQualifierInfo object.
|
boolean |
equals(java.lang.Object obj) |
static SignaturePolicyQualifierInfo |
getSignaturePolicyQualifierInfo(iaik.asn1.ASN1Object obj)
Creates the appropriate instance from the given ASN.1 object as indicated by the included
signature policy qualifier ID.
|
iaik.asn1.ObjectID |
getSigPolicyQualifierId()
Returns the signature policy qualifier ID
|
iaik.asn1.ASN1Object |
getSigQualifierValue()
Returns the value of this signature policy qualifier as ASN.1 object
|
iaik.asn1.ASN1Object |
toASN1Object()
Returns this SignaturePolicyQualifierInfo as ASN1Object.
|
java.lang.String |
toString() |
public SignaturePolicyQualifierInfo(iaik.asn1.ObjectID sigPolicyQualifierID, iaik.asn1.ASN1Object sigPolicyQualifierValue)
sigPolicyQualifierID
- the object ID of this signature policy qualifiersigPolicyQualifierValue
- the policy qualifier's value as ASN.1 objectpublic SignaturePolicyQualifierInfo(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
obj
- the SignaturePolicyQualifierInfo as ASN1Objectiaik.asn1.CodingException
public static SignaturePolicyQualifierInfo getSignaturePolicyQualifierInfo(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
Spuri
or
SpUserNotice
object if the respective ID matches. Returns
an object of this class otherwise.obj
- the signature policy qualifier as ASN1Objectiaik.asn1.CodingException
- if the given ASN.1 object can't be parsedpublic void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
obj
- the SignaturePolicyQualifierInfo as ASN1Objectiaik.asn1.CodingException
public iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
toASN1Object
in interface iaik.asn1.ASN1Type
iaik.asn1.CodingException
public iaik.asn1.ObjectID getSigPolicyQualifierId()
public iaik.asn1.ASN1Object getSigQualifierValue() throws iaik.asn1.CodingException
iaik.asn1.CodingException
- if the value can't be encodedpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object