public class PolicyInformation
extends java.lang.Object
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(DerValue val)
Create an instance of PolicyInformation, decoding from
the passed DerValue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(DerOutputStream out)
Write the PolicyInformation to the DerOutputStream.
|
boolean |
equals(java.lang.Object other)
Compare this PolicyInformation with another object for equality
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<java.lang.String> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
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.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
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(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.Object get(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
java.io.IOExceptionpublic void delete(java.lang.String name)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Enumeration<java.lang.String> getElements()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Objectpublic void encode(DerOutputStream out) throws java.io.IOException
out - the DerOutputStream to write the extension to.java.io.IOException - on encoding errors.Copyright © 2020. All Rights Reserved.