|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 3 (10.1.3) B25381-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.security.crypto.cert.X509Extension
oracle.security.crypto.cert.ext.ExtKeyUsageExtension
Represents the extended key usage extension for certificates from RFC 2459.
| Field Summary |
| Fields inherited from class oracle.security.crypto.cert.X509Extension |
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded |
| Constructor Summary | |
ExtKeyUsageExtension()Create a new extension with the appropriate OID type. |
|
ExtKeyUsageExtension(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)Creates a new extension with the given key purpose OID. |
|
ExtKeyUsageExtension(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose, boolean critical)Creates a new extension with the given key purpose OID and critical value. |
|
ExtKeyUsageExtension(java.io.InputStream is) |
|
ExtKeyUsageExtension(java.util.Vector keyPurposes, boolean critical)Creates a new extension with the given vector of key purpose OIDs and critical value. |
|
| Method Summary | |
void |
addKeyPurpose(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)Adds a key purpose OID to this extension. |
java.util.Enumeration |
getKeyPurposes()Gets the key purpose OIDs. |
boolean |
hasKeyPurpose(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)Returns true if this extension has the given key purpose OID set, otherwise returns false. |
java.lang.String |
toString()Returns a string representation of this object. |
| Methods inherited from class oracle.security.crypto.cert.X509Extension |
getASN1Value, getCritical, getID, getType, getValue, input, input, inputInstance, isRecognized, length, output, setCritical, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ExtKeyUsageExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.
public ExtKeyUsageExtension(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)
keyPurpose - The key purpose OID.
public ExtKeyUsageExtension(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose,
boolean critical)
keyPurpose - The key purpose OID.critical - true if this extension is critical, false otherwise.
public ExtKeyUsageExtension(java.util.Vector keyPurposes,
boolean critical)
keyPurposes - A Vector of ASN1ObjectIDs.critical - true if this extension is critical, false otherwise.
public ExtKeyUsageExtension(java.io.InputStream is)
throws java.io.IOException
| Method Detail |
public void addKeyPurpose(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)
keyPurpose - The OID of the key purpose.public java.util.Enumeration getKeyPurposes()
Enumeration of ASN1ObjectIDs.public boolean hasKeyPurpose(oracle.security.crypto.asn1.ASN1ObjectID keyPurpose)
true if this extension has the given key purpose OID set, otherwise returns false.keyPurpose - The OID of the key purpose to test.public java.lang.String toString()
X509ExtensiontoString in class X509Extension
|
Oracle Security Developer Tools Security Engine Java API Reference 10g Release 3 (10.1.3) B25381-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||