|
Bouncy Castle Cryptography 1.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.jce.cert.PolicyQualifierInfo
An immutable policy qualifier represented by the ASN.1 PolicyQualifierInfo
structure.
The ASN.1 definition is as follows:
PolicyQualifierInfo ::= SEQUENCE { policyQualifierId PolicyQualifierId, qualifier ANY DEFINED BY policyQualifierId }
Set
of PolicyQualifierInfo
objects are returned
by the PolicyNode.getPolicyQualifiers
method. This allows applications with specific policy requirements to
process and validate each policy qualifier. Applications that need to
process policy qualifiers should explicitly set the
policyQualifiersRejected
flag to false (by calling the
PKIXParameters.setPolicyQualifiersRejected
method) before validating
a certification path.policyQualifiersRejected
flag is set to false, it is up to
the application to validate all policy qualifiers in this manner in order
to be PKIX compliant.PolicyQualifierInfo
objects must be immutable and
thread-safe. That is, multiple threads may concurrently invoke the
methods defined in this class on a single PolicyQualifierInfo
object (or more than one) with no ill effects. Requiring
PolicyQualifierInfo
objects to be immutable and thread-safe
allows them to be passed around to various pieces of code without
worrying about coordinating access.DERInputStream
,
ASN1Sequence
,
DERObjectIdentifier
,
DEROutputStream
,
DERObject
and
_dumpAsString
Constructor Summary | |
PolicyQualifierInfo(byte[] encoded)
Creates an instance of PolicyQualifierInfo from the
encoded bytes. |
Method Summary | |
byte[] |
getEncoded()
Returns the ASN.1 DER encoded form of this PolicyQualifierInfo . |
byte[] |
getPolicyQualifier()
Returns the ASN.1 DER encoded form of the qualifier
field of this PolicyQualifierInfo . |
java.lang.String |
getPolicyQualifierId()
Returns the policyQualifierId field of this
PolicyQualifierInfo . |
java.lang.String |
toString()
Return a printable representation of this PolicyQualifierInfo .Uses DERInputStream ,
DERObject and
_dumpAsString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PolicyQualifierInfo(byte[] encoded) throws java.io.IOException
PolicyQualifierInfo
from the
encoded bytes. The encoded byte array is copied on construction.DERInputStream
,
ASN1Sequence
,
DERObjectIdentifier
and
DEROutputStream
encoded
- a byte array containing the qualifier in DER encoding
java.io.IOException
- thrown if the byte array does not represent a
valid and parsable policy qualifierMethod Detail |
public java.lang.String getPolicyQualifierId()
policyQualifierId
field of this
PolicyQualifierInfo
. The policyQualifierId
is an Object Identifier (OID) represented by a set of nonnegative
integers separated by periods.
null
)public byte[] getEncoded()
PolicyQualifierInfo
.
null
).
Note that a copy is returned, so the data is cloned each time
this method is called.public byte[] getPolicyQualifier()
qualifier
field of this PolicyQualifierInfo
.
qualifier
field. Note that a copy is returned, so the data is cloned each
time this method is called.public java.lang.String toString()
PolicyQualifierInfo
.DERInputStream
,
DERObject
and
_dumpAsString
toString
in class java.lang.Object
String
describing the contents of this
PolicyQualifierInfo
|
Bouncy Castle Cryptography 1.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |