public class CertificateExtensions extends java.util.Vector<Extension> implements CertAttrSet, java.io.Serializable
CertAttrSet
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENT
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
static java.lang.String |
NAME
name
|
Constructor and Description |
---|
CertificateExtensions()
Default constructor for the certificate attribute.
|
CertificateExtensions(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(java.io.InputStream in)
Decode the extensions from the InputStream.
|
void |
decodeEx(java.io.InputStream in)
Decode the extensions from the InputStream.
|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(java.io.OutputStream out)
Encode the extensions in DER form to the stream.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Returns an enumeration of the names of the attributes existing within
this attribute.
|
java.util.Enumeration<Extension> |
getAttributes()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
java.util.Enumeration<java.lang.String> |
getNames() |
int |
hashCode() |
void |
parseExtension(Extension ext) |
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, firstElement, forEach, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
toString
public static final java.lang.String IDENT
public static final java.lang.String NAME
public CertificateExtensions()
public CertificateExtensions(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the Extension from.java.io.IOException
- on decoding errors.public void parseExtension(Extension ext) throws java.io.IOException
java.io.IOException
public void decode(java.io.InputStream in) throws java.io.IOException
decode
in interface CertAttrSet
in
- the InputStream to unmarshal the contents from.java.io.IOException
- on decoding or validity errors.public void decodeEx(java.io.InputStream in) throws java.io.IOException
in
- the InputStream to unmarshal the contents from.java.io.IOException
- on decoding or validity errors.public void encode(java.io.OutputStream out) throws java.security.cert.CertificateException, java.io.IOException
encode
in interface CertAttrSet
out
- the DerOutputStream to marshal the contents to.java.security.cert.CertificateException
- on encoding errors.java.io.IOException
- on errors.public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOException
set
in interface CertAttrSet
name
- the extension name used in the cache.obj
- the object to set.java.io.IOException
- if the object could not be cached.public java.lang.Object get(java.lang.String name) throws java.io.IOException
get
in interface CertAttrSet
name
- the extension name used in the lookup.java.io.IOException
- if named extension is not found.public void delete(java.lang.String name) throws java.io.IOException
delete
in interface CertAttrSet
name
- the extension name used in the lookup.java.io.IOException
- if named extension is not found.public java.util.Enumeration<java.lang.String> getNames()
public java.util.Enumeration<Extension> getAttributes()
public java.util.Enumeration<java.lang.String> getAttributeNames()
CertAttrSet
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
getName
in interface CertAttrSet
public int hashCode()