|
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.X509ExtensionSet
public class X509ExtensionSet
A list of X.509 Extensions, as defined in RFC 2459.
The list has hashtable semantics in that at most one extension of a given type may be defined at any given time, but has vector semantics in that order of input is preserved.
X509Extension, Serialized Form| Constructor Summary | |
|---|---|
X509ExtensionSet()Create a new, empty X509ExtensionSet. |
|
X509ExtensionSet(java.io.InputStream is)Create a new X509ExtensionSet from the given input stream. |
|
X509ExtensionSet(java.util.Vector exts)Create a new X509ExtensionSet containing the X509Extensionss in the given vector. |
|
| Method Summary | |
|---|---|
X509Extension |
addExtension(X509Extension ext)Add an extension to this extension set. |
X509Extension |
getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)Returns the extension with the given type. |
java.util.Vector |
getExtensions()Returns a vector of all the extensions contained in this X509ExtensionSet. |
boolean |
hasExtension(oracle.security.crypto.asn1.ASN1ObjectID type)Returns true if this X509ExtensionSet contains an extension of the given type, otherwise returns false. |
boolean |
hasUnrecognizedCriticalExtension()Returns true if this X509ExtensionSet contains a critical extension that is not recognized by this implementation. |
void |
input(java.io.InputStream is) |
int |
length()Returns the length in bytes of the ASN.1 representation of this X509ExtensionSet. |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
int |
size()Returns the number of extensions in this X509ExtensionSet. |
java.lang.String |
toString() |
java.util.Enumeration |
types()Returns an enumeration of the types of all the extensions contained in this X509ExtensionSet. |
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 X509ExtensionSet()
X509ExtensionSet.public X509ExtensionSet(java.util.Vector exts)
X509ExtensionSet containing the X509Extensionss in the given vector.
public X509ExtensionSet(java.io.InputStream is)
throws java.io.IOException
X509ExtensionSet from the given input stream.
java.io.IOException| Method Detail |
|---|
public X509Extension addExtension(X509Extension ext)
ext - the X509Extension to add.public X509Extension getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
type - an OID specifying the extension.null if not present in this set.public java.util.Enumeration types()
X509ExtensionSet.Enumeration of ASN1ObjectID.public java.util.Vector getExtensions()
X509ExtensionSet.Vector of X509Extension.public int size()
X509ExtensionSet.public boolean hasExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
true if this X509ExtensionSet contains an extension of the given type, otherwise returns false.type - the OID of the extension.public boolean hasUnrecognizedCriticalExtension()
true if this X509ExtensionSet contains a critical extension that is not recognized by this implementation.public java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
throws java.io.IOException
input in interface oracle.security.crypto.util.Streamablejava.io.IOException
public void output(java.io.OutputStream os)
throws java.io.IOException
output in interface oracle.security.crypto.util.Streamablejava.io.IOExceptionpublic int length()
X509ExtensionSet.length in interface oracle.security.crypto.util.Streamable
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 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 | ||||||||