APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class PolicyInformation

extends Object
implements DerEncoder
Class Inheritance
All Implemented Interfaces
sun.security.util.DerEncoder
Imports
java.io.IOException, java.security.cert.PolicyQualifierInfo, java.util.Collections, .LinkedHashSet, .Objects, .Set, sun.security.util.DerEncoder, .DerValue, .DerOutputStream

PolicyInformation is the class that contains a specific certificate policy that is part of the CertificatePoliciesExtension. A CertificatePolicyExtension value consists of a vector of these objects.

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 }
Authors
Sean Mullan, Anne Anderson
Since
1.4

Field Summary

Modifier and TypeField and Description
public static final String
public static final String
private CertificatePolicyId
private Set<PolicyQualifierInfo>
public static final String

Constructor Summary

AccessConstructor and Description
public
PolicyInformation(CertificatePolicyId
the policyIdentifier as a CertificatePolicyId
policyIdentifier
,
Set<PolicyQualifierInfo>
a Set of PolicyQualifierInfo objects. Must not be NULL. Specify an empty Set for no qualifiers.
policyQualifiers
)

Create an instance of PolicyInformation

public
PolicyInformation(DerValue
the DerValue to construct the PolicyInformation from.
val
)

Create an instance of PolicyInformation, decoding from the passed DerValue.

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to write the extension to.
out
)

Implements sun.security.util.DerEncoder.encode.

Write the PolicyInformation to the DerOutputStream.

public boolean

Returns:

true iff the PolicyInformation objects match
equals
(Object
object to be compared with this
obj
)

Overrides java.lang.Object.equals.

Compare this PolicyInformation with another object for equality

public CertificatePolicyId

Returns:

The CertificatePolicyId object containing the policyIdentifier (not a copy).
getPolicyIdentifier
()

Return the policyIdentifier value

public Set<PolicyQualifierInfo>

Returns:

a Set of PolicyQualifierInfo objects associated with this certificate policy (not a copy). Returns an empty Set if there are no qualifiers. Never returns null.
getPolicyQualifiers
()

Return the policyQualifiers value

public int

Returns:

the hash code for this PolicyInformation
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hash code for this PolicyInformation.

public String
toString()

Overrides java.lang.Object.toString.

Return a printable representation of the PolicyInformation.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

IDback to summary
public static final String ID
NAMEback to summary
public static final String NAME
policyIdentifierback to summary
private CertificatePolicyId policyIdentifier
policyQualifiersback to summary
private Set<PolicyQualifierInfo> policyQualifiers
QUALIFIERSback to summary
public static final String QUALIFIERS

Constructor Detail

PolicyInformationback to summary
public PolicyInformation(CertificatePolicyId policyIdentifier, Set<PolicyQualifierInfo> policyQualifiers) throws IOException

Create an instance of PolicyInformation

Parameters
policyIdentifier:CertificatePolicyId

the policyIdentifier as a CertificatePolicyId

policyQualifiers:Set<PolicyQualifierInfo>

a Set of PolicyQualifierInfo objects. Must not be NULL. Specify an empty Set for no qualifiers.

Exceptions
IOException:
on decoding errors.
PolicyInformationback to summary
public PolicyInformation(DerValue val) throws IOException

Create an instance of PolicyInformation, decoding from the passed DerValue.

Parameters
val:DerValue

the DerValue to construct the PolicyInformation from.

Exceptions
IOException:
on decoding errors.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Write the PolicyInformation to the DerOutputStream.

Parameters
out:DerOutputStream

the DerOutputStream to write the extension to.

Annotations
@Override
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Compare this PolicyInformation with another object for equality

Parameters
obj:Object

object to be compared with this

Returns:boolean

true iff the PolicyInformation objects match

Annotations
@Override
getPolicyIdentifierback to summary
public CertificatePolicyId getPolicyIdentifier()

Return the policyIdentifier value

Returns:CertificatePolicyId

The CertificatePolicyId object containing the policyIdentifier (not a copy).

getPolicyQualifiersback to summary
public Set<PolicyQualifierInfo> getPolicyQualifiers()

Return the policyQualifiers value

Returns:Set<PolicyQualifierInfo>

a Set of PolicyQualifierInfo objects associated with this certificate policy (not a copy). Returns an empty Set if there are no qualifiers. Never returns null.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns the hash code for this PolicyInformation.

Returns:int

the hash code for this PolicyInformation

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a printable representation of the PolicyInformation.