public class PolicyInformation
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
The ASN.1 syntax for PolicyInformation (IMPLICIT tagging is defined in the module definition):
PolicyInformation ::= SEQUENCE {
policyIdentifier CertPolicyId,
policyQualifiers SEQUENCE SIZE (1..MAX) OF
PolicyQualifierInfo OPTIONAL }
CertPolicyId ::= OBJECT IDENTIFIER
PolicyQualifierInfo ::= SEQUENCE {
policyQualifierId PolicyQualifierId,
qualifier ANY DEFINED BY policyQualifierId }
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID |
static java.lang.String |
NAME |
static java.lang.String |
QUALIFIERS |
| Constructor and Description |
|---|
PolicyInformation(CertificatePolicyId policyIdentifier,
java.util.Set<java.security.cert.PolicyQualifierInfo> policyQualifiers)
Create an instance of PolicyInformation
|
PolicyInformation(com.tencent.kona.sun.security.util.DerValue val)
Create an instance of PolicyInformation, decoding from
the passed DerValue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the PolicyInformation to the DerOutputStream.
|
boolean |
equals(java.lang.Object other)
Compare this PolicyInformation with another object for equality
|
CertificatePolicyId |
getPolicyIdentifier()
Return the policyIdentifier value
|
java.util.Set<java.security.cert.PolicyQualifierInfo> |
getPolicyQualifiers()
Return the policyQualifiers value
|
int |
hashCode()
Returns the hash code for this PolicyInformation.
|
java.lang.String |
toString()
Return a printable representation of the PolicyInformation.
|
public static final java.lang.String NAME
public static final java.lang.String ID
public static final java.lang.String QUALIFIERS
public PolicyInformation(CertificatePolicyId policyIdentifier, java.util.Set<java.security.cert.PolicyQualifierInfo> policyQualifiers) throws java.io.IOException
policyIdentifier - the policyIdentifier as a
CertificatePolicyIdpolicyQualifiers - a Set of PolicyQualifierInfo objects.
Must not be NULL. Specify an empty Set for no qualifiers.java.io.IOException - on decoding errors.public PolicyInformation(com.tencent.kona.sun.security.util.DerValue val)
throws java.io.IOException
val - the DerValue to construct the PolicyInformation from.java.io.IOException - on decoding errors.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - object to be compared with thispublic int hashCode()
hashCode in class java.lang.Objectpublic CertificatePolicyId getPolicyIdentifier()
public java.util.Set<java.security.cert.PolicyQualifierInfo> getPolicyQualifiers()
public java.lang.String toString()
toString in class java.lang.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DerOutputStream to write the extension to.