public class PolicyQualifierInfo extends Object
PolicyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId, qualifier ANY DEFINED BY policyQualifierId } PolicyQualifierId ::= OBJECT IDENTIFIER
Constructor and Description |
---|
PolicyQualifierInfo(byte[] encoded)
Create a new PolicyQualifierInfo object from the DER encoded form
passed in the byte array.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getEncoded()
Returns the DER encoded form of this object; the contents of the
returned byte array are equivalent to those that were passed to the
constructor.
|
byte[] |
getPolicyQualifier()
Get the
qualifier field of this object, as a DER
encoded byte array. |
String |
getPolicyQualifierId()
Returns the
policyQualifierId field of this structure,
as a dotted-decimal representation of the object identifier. |
String |
toString()
Returns a printable string representation of this object.
|
public PolicyQualifierInfo(byte[] encoded) throws IOException
The ASN.1 form of PolicyQualifierInfo is:
PolicyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId, qualifier ANY DEFINED BY policyQualifierId } PolicyQualifierId ::= OBJECT IDENTIFIER
encoded
- The DER encoded form.IOException
- If the structure cannot be parsed from the
encoded bytes.public final String getPolicyQualifierId()
policyQualifierId
field of this structure,
as a dotted-decimal representation of the object identifier.public final byte[] getEncoded()
public final byte[] getPolicyQualifier()
qualifier
field of this object, as a DER
encoded byte array. The byte array returned is cloned every time
this method is called.public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)