public class CertificatePolicyId
extends java.lang.Object
implements com.tencent.kona.sun.security.util.DerEncoder
| Constructor and Description |
|---|
CertificatePolicyId(com.tencent.kona.sun.security.util.DerValue val)
Create the object from its Der encoded value.
|
CertificatePolicyId(com.tencent.kona.sun.security.util.ObjectIdentifier id)
Create a CertificatePolicyId with the ObjectIdentifier.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the CertificatePolicyId to the DerOutputStream.
|
boolean |
equals(java.lang.Object other)
Compares this CertificatePolicyId with another, for
equality.
|
com.tencent.kona.sun.security.util.ObjectIdentifier |
getIdentifier()
Return the value of the CertificatePolicyId as an ObjectIdentifier.
|
int |
hashCode()
Returns a hash code value for this object.
|
java.lang.String |
toString()
Returns a printable representation of the CertificatePolicyId.
|
public CertificatePolicyId(com.tencent.kona.sun.security.util.ObjectIdentifier id)
id - the ObjectIdentifier for the policy id.public CertificatePolicyId(com.tencent.kona.sun.security.util.DerValue val)
throws java.io.IOException
val - the DER encoded value for the same.java.io.IOExceptionpublic com.tencent.kona.sun.security.util.ObjectIdentifier getIdentifier()
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 object to.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object