Package netscape.security.x509
Class CRLExtensions
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<Extension>
-
- netscape.security.x509.CRLExtensions
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<Extension>
,java.util.Collection<Extension>
,java.util.List<Extension>
,java.util.RandomAccess
public class CRLExtensions extends java.util.Vector<Extension>
This class defines the CRL Extensions.- Version:
- 1.4
- Author:
- Hemma Prafullchandra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CRLExtensions()
Default constructor.CRLExtensions(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(java.io.InputStream in)
Decode the extensions from the InputStream.void
encode(java.io.OutputStream out, boolean isExplicit)
Encode the extensions in DER form to the stream.boolean
equals(java.lang.Object obj)
Extension
get(java.lang.String alias)
Get the extension with this alias.java.util.Enumeration<Extension>
getElements()
Return an enumeration of names of the extensions.int
hashCode()
void
set(java.lang.String alias, Extension obj)
Set the extension value with this alias.-
Methods inherited from class java.util.Vector
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
-
-
-
-
Constructor Detail
-
CRLExtensions
public CRLExtensions()
Default constructor.
-
CRLExtensions
public CRLExtensions(DerInputStream in) throws java.security.cert.CRLException, X509ExtensionException
Create the object, decoding the values from the passed DER stream.- Parameters:
in
- the DerInputStream to read the Extension from.- Throws:
java.security.cert.CRLException
- on decoding errors.X509ExtensionException
- on extension handling errors.
-
-
Method Detail
-
decode
public void decode(java.io.InputStream in) throws java.security.cert.CRLException, X509ExtensionException
Decode the extensions from the InputStream.- Parameters:
in
- the InputStream to unmarshal the contents from.- Throws:
java.security.cert.CRLException
- on decoding or validity errors.X509ExtensionException
- on extension handling errors.
-
encode
public void encode(java.io.OutputStream out, boolean isExplicit) throws java.security.cert.CRLException
Encode the extensions in DER form to the stream.- Parameters:
out
- the DerOutputStream to marshal the contents to.isExplicit
- the tag indicating whether this is an entry extension or a CRL extension.- Throws:
java.security.cert.CRLException
- on encoding errors.
-
get
public Extension get(java.lang.String alias) throws X509ExtensionException
Get the extension with this alias.- Parameters:
alias
- the identifier string for the extension to retrieve.- Throws:
X509ExtensionException
- on extension handling errors.
-
set
public void set(java.lang.String alias, Extension obj) throws java.io.IOException
Set the extension value with this alias.- Parameters:
alias
- the identifier string for the extension to set.obj
- the Object to set the extension identified by the alias.- Throws:
java.io.IOException
- on errors.
-
getElements
public java.util.Enumeration<Extension> getElements()
Return an enumeration of names of the extensions.- Returns:
- an enumeration of the names of the extensions in this CRL.
-
hashCode
public int hashCode()
-
-