|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.cert.X509Extension
public class X509Extension
An X.509 certificate or CRL extension.
An X.509 extensions consists of an ID which is an ASN.1 object identifier which indicates the type of the extension, together with a value, which is the DER encoding of an ASN.1 object, and a flag which indicates whether the extension is critical.
X509, CRL, Serialized Form| Field Summary | |
|---|---|
static oracle.security.crypto.asn1.ASN1ObjectID |
id_netscape_ceThe Netscape certificate extensions OID prefix. |
static oracle.security.crypto.asn1.ASN1ObjectID |
id_netscape_ce_typeThe Netscape certificate type extension OID. |
static oracle.security.crypto.asn1.ASN1ObjectID |
id_set_ceThe SET certificate extensions OID prefix. |
static oracle.security.crypto.asn1.ASN1ObjectID |
id_set_ce_typeThe SET certificate type extension OID. |
protected boolean |
isDecodedFor use by subclasses that decode the DER-encoded byte array value. |
| Constructor Summary | |
|---|---|
|
X509Extension()Creates a new empty instance. |
protected |
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type) |
|
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)Creates a new X.509 extension with the given ID and value. |
protected |
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type, boolean critical) |
|
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type, boolean critical, oracle.security.crypto.asn1.ASN1Object value)Creates a new X.509 extension with the given ID and value. |
|
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type, boolean critical, byte[] value)Creates a new X.509 extension with the given ID and value. |
|
X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type, byte[] value)Creates a new X.509 extension with the given ID and value. |
|
X509Extension(java.io.InputStream is)Creates a new X.509 extension by reading its encoding from the given input stream. |
| Method Summary | |
|---|---|
boolean |
getCritical()Indicates whether this extension is critical. |
oracle.security.crypto.asn1.ASN1ObjectID |
getType() |
byte[] |
getValue()Returns the value of this extension. |
void |
input(java.io.InputStream is)Read from the specified input stream. |
static X509Extension |
inputInstance(java.io.InputStream is)Instantiates a X509Extension or one of its sub-classes by reading its contents from the given input stream. |
boolean |
isRecognized()Returns true if this object's type is a recognized, specific sub-class of X509Extension, otherwise false. |
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) |
protected void |
setCritical(boolean critical)Sets if yes or not this extension is critical. |
protected void |
setValue(byte[] value)Sets the value of this extension. |
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 |
| Field Detail |
|---|
public static final oracle.security.crypto.asn1.ASN1ObjectID id_netscape_ce
public static final oracle.security.crypto.asn1.ASN1ObjectID id_netscape_ce_type
public static final oracle.security.crypto.asn1.ASN1ObjectID id_set_ce
public static final oracle.security.crypto.asn1.ASN1ObjectID id_set_ce_type
protected boolean isDecoded
| Constructor Detail |
|---|
public X509Extension()
protected X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type)
protected X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type,
boolean critical)
public X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type,
byte[] value)
type - The ID which identifies the type of the extension.value - The value of this extension. This should be the DER encoding of an ASN.1 object.
public X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type,
oracle.security.crypto.asn1.ASN1Object value)
type - The ID which identifies the type of the extension.value - The value of this extension.
public X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type,
boolean critical,
byte[] value)
type - The ID which identifies the type of the extension.critical - true if this extension is critical, otherwise falsevalue - The value of this extension. This should be the DER encoding of an ASN.1 object.
public X509Extension(oracle.security.crypto.asn1.ASN1ObjectID type,
boolean critical,
oracle.security.crypto.asn1.ASN1Object value)
type - The ID which identifies the type of the extension.critical - true if this extension is critical, otherwise falsevalue - The value of this extension.
public X509Extension(java.io.InputStream is)
throws java.io.IOException
is - the input streamjava.io.IOException| Method Detail |
|---|
public static X509Extension inputInstance(java.io.InputStream is)
throws java.io.IOException
X509Extension or one of its sub-classes by reading its contents from the given input stream.is - input stream containing the extension.X509Extension if the input extension's type/OID is known, otherwise returns an instance of X509Extension.java.io.IOException - if an error occurs reading from the input stream or instantiating the extension object.public boolean isRecognized()
true if this object's type is a recognized, specific sub-class of X509Extension, otherwise false.public oracle.security.crypto.asn1.ASN1ObjectID getType()
public boolean getCritical()
protected void setCritical(boolean critical)
public byte[] getValue()
protected void setValue(byte[] value)
public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic int length()
length in interface oracle.security.crypto.util.Streamablepublic 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.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-05 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||