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

public Class CertificatePolicyId

extends Object
implements DerEncoder
Class Inheritance
All Implemented Interfaces
sun.security.util.DerEncoder
Imports
java.io.IOException, java.util.Objects, sun.security.util.*

Represent the CertificatePolicyId ASN.1 object.
Authors
Amit Kapoor, Hemma Prafullchandra

Field Summary

Modifier and TypeField and Description
private final ObjectIdentifier

Constructor Summary

AccessConstructor and Description
public
CertificatePolicyId(ObjectIdentifier
the ObjectIdentifier for the policy id.
id
)

Create a CertificatePolicyId with the ObjectIdentifier.

public
CertificatePolicyId(DerValue
the DER encoded value for the same.
val
)

Create the object from its Der encoded value.

Method Summary

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

Implements sun.security.util.DerEncoder.encode.

Write the CertificatePolicyId to the DerOutputStream.

public boolean

Returns:

true iff the ids are identical.
equals
(Object obj)

Overrides java.lang.Object.equals.

Compares this CertificatePolicyId with another, for equality.

public ObjectIdentifier
getIdentifier()

Return the value of the CertificatePolicyId as an ObjectIdentifier.

public int

Returns:

a hash code value for this object
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides java.lang.Object.toString.

Returns a printable representation of the CertificatePolicyId.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

idback to summary
private final ObjectIdentifier id

Constructor Detail

CertificatePolicyIdback to summary
public CertificatePolicyId(ObjectIdentifier id)

Create a CertificatePolicyId with the ObjectIdentifier.

Parameters
id:ObjectIdentifier

the ObjectIdentifier for the policy id.

CertificatePolicyIdback to summary
public CertificatePolicyId(DerValue val) throws IOException

Create the object from its Der encoded value.

Parameters
val:DerValue

the DER encoded value for the same.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Write the CertificatePolicyId to the DerOutputStream.

Parameters
out:DerOutputStream

the DerOutputStream to write the object to.

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

Overrides java.lang.Object.equals.

Compares this CertificatePolicyId with another, for equality. Uses ObjectIdentifier.equals() as test for equality.

Returns:boolean

true iff the ids are identical.

Annotations
@Override
getIdentifierback to summary
public ObjectIdentifier getIdentifier()

Return the value of the CertificatePolicyId as an ObjectIdentifier.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

Returns:int

a hash code value for this object

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a printable representation of the CertificatePolicyId.