public class X509ExtensionSet
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable, java.security.cert.X509Extension
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 and Description |
|---|
X509ExtensionSet()
Create a new, empty
X509ExtensionSet. |
X509ExtensionSet(java.io.InputStream is)
Create a new
X509ExtensionSet from the given input stream. |
X509ExtensionSet(java.util.List<X509Extension> exts)
Create a new
X509ExtensionSet containing the X509Extensionss in the given vector. |
X509ExtensionSet(java.util.Vector<X509Extension> exts)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
X509Extension |
addExtension(X509Extension ext)
Add an extension to this extension set.
|
java.util.Set<java.lang.String> |
getCriticalExtensionOIDs() |
X509Extension |
getExtension(oracle.security.crypto.asn1.ASN1ObjectID type)
Returns the extension with the given type.
|
java.util.Vector<X509Extension> |
getExtensions()
Deprecated.
|
java.util.ArrayList<X509Extension> |
getExtensionsAsList()
Returns a list of all the extensions contained in this
X509ExtensionSet. |
java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,X509Extension> |
getExtensionsAsMap() |
byte[] |
getExtensionValue(java.lang.String oid) |
java.util.Set<java.lang.String> |
getNonCriticalExtensionOIDs() |
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. |
boolean |
hasUnsupportedCriticalExtension() |
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<oracle.security.crypto.asn1.ASN1ObjectID> |
types()
Deprecated.
|
void |
writeExternal(java.io.ObjectOutput os) |
public X509ExtensionSet()
X509ExtensionSet.public X509ExtensionSet(java.util.Vector<X509Extension> exts)
X509ExtensionSet(List)X509ExtensionSet containing the X509Extensionss in the given vector.public X509ExtensionSet(java.util.List<X509Extension> 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.IOExceptionpublic 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<oracle.security.crypto.asn1.ASN1ObjectID> types()
getExtensionsAsMap()X509ExtensionSet.Enumeration of ASN1ObjectID.public java.util.Map<oracle.security.crypto.asn1.ASN1ObjectID,X509Extension> getExtensionsAsMap()
public java.util.Vector<X509Extension> getExtensions()
getExtensionsAsList()X509ExtensionSet.Vector of X509Extension.public java.util.ArrayList<X509Extension> getExtensionsAsList()
X509ExtensionSet.List 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.Objectpublic java.util.Set<java.lang.String> getCriticalExtensionOIDs()
getCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic byte[] getExtensionValue(java.lang.String oid)
getExtensionValue in interface java.security.cert.X509Extensionpublic java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs in interface java.security.cert.X509Extensionpublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension in interface java.security.cert.X509Extension
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