|
Oracle Security Developer Tools Security Engine Java API Reference 11g (11.1.1) E10674-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.X509PolicyInformation
public class X509PolicyInformation
A class that represents the X.509v3 PolicyInformation
data type. The X.509v3 CertificatePolicies
extension consists of a sequence of such objects. Each instance consists of an ID which identifies the policy, and one or more policy qualifiers.
X509
, X509Extension
, PKIX
, CertificatePoliciesExtension
, Serialized FormConstructor Summary | |
---|---|
X509PolicyInformation() Creates a new, empty policy information object. |
|
X509PolicyInformation(oracle.security.crypto.asn1.ASN1ObjectID id) Creates a new policy information object, with the given ID, and no policy qualifiers. |
|
X509PolicyInformation(oracle.security.crypto.asn1.ASN1ObjectID id, java.util.Vector policyQualifiers) Creates a new policy information object, with the given ID and policy qualifiers. |
|
X509PolicyInformation(java.io.InputStream is) |
Method Summary | |
---|---|
void |
addCPSPointer(java.lang.String uri) Add a Certificate Practice Statement (CPS Pointer) policy qualifier with the given URI to this certificate policy. |
void |
addPolicyQualifier(oracle.security.crypto.asn1.ASN1ObjectID qualifierID, oracle.security.crypto.asn1.ASN1Object qualifier) Add a policy qualifier to this certificate policy. |
void |
addUserNotice(java.lang.String organization, int[] noticeNumbers, java.lang.String explicitText) Add a User Notice policy qualifier to this certificate policy. |
oracle.security.crypto.asn1.ASN1ObjectID |
getID() Returns the policy ID. |
java.util.Vector |
getPolicyQualifiers() Returns a Vector containing the policy qualifiers, or null if none are defined. |
void |
input(java.io.InputStream is) Read from the specified input stream. |
int |
length() Returns length of ASN.1 encoding. |
void |
output(java.io.OutputStream os) Output to the specified output stream. |
void |
readExternal(java.io.ObjectInput is) |
java.lang.String |
toString() Returns a string representation of this object. |
void |
writeExternal(java.io.ObjectOutput os) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public X509PolicyInformation()
input(java.io.InputStream)
method.public X509PolicyInformation(oracle.security.crypto.asn1.ASN1ObjectID id)
public X509PolicyInformation(oracle.security.crypto.asn1.ASN1ObjectID id, java.util.Vector policyQualifiers)
public X509PolicyInformation(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void addPolicyQualifier(oracle.security.crypto.asn1.ASN1ObjectID qualifierID, oracle.security.crypto.asn1.ASN1Object qualifier)
Note: If this X509PolicyInformation
is the special policy PKIX.anyPolicy
, the qualifier must be one of PKIX.id_qt_cps
or PKIX.id_qt_unotice
.
qualifierID
- The OID identifying the policy qualifier.qualifier
- The value of the policy qualifier.addCPSPointer(java.lang.String)
, addUserNotice(java.lang.String, int[], java.lang.String)
public void addCPSPointer(java.lang.String uri)
public void addUserNotice(java.lang.String organization, int[] noticeNumbers, java.lang.String explicitText)
Both organization
and noticeNumbers
may be null
, but not one of them; explicitText
may be null
.
Note that RFC-2459 specifies a limit of 200 characters for organization
and explicitText
.
public oracle.security.crypto.asn1.ASN1ObjectID getID()
public java.util.Vector getPolicyQualifiers()
Vector
containing the policy qualifiers, or null
if none are defined.public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable
public java.lang.String toString()
toString
in class java.lang.Object
public void writeExternal(java.io.ObjectOutput os) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput is) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
Oracle Security Developer Tools Security Engine Java API Reference 11g (11.1.1) E10674-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |