Class CRLExtensions
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Extension>,Collection<Extension>,List<Extension>,RandomAccess
This class defines the CRL Extensions.
- Version:
- 1.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Create the object, decoding the values from the passed DER stream. -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(InputStream in) Decode the extensions from the InputStream.voidencode(OutputStream out, boolean isExplicit) Encode the extensions in DER form to the stream.booleanGet the extension with this alias.Return an enumeration of names of the extensions.inthashCode()private voidparseExtension(Extension ext) voidSet 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, trimToSizeMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
map
-
-
Constructor Details
-
CRLExtensions
public CRLExtensions()Default constructor. -
CRLExtensions
Create the object, decoding the values from the passed DER stream.- Parameters:
in- the DerInputStream to read the Extension from.- Throws:
CRLException- on decoding errors.X509ExtensionException- on extension handling errors.
-
-
Method Details
-
parseExtension
- Throws:
X509ExtensionException
-
decode
Decode the extensions from the InputStream.- Parameters:
in- the InputStream to unmarshal the contents from.- Throws:
CRLException- on decoding or validity errors.X509ExtensionException- on extension handling errors.
-
encode
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:
CRLException- on encoding errors.
-
get
Get the extension with this alias.- Parameters:
alias- the identifier string for the extension to retrieve.- Throws:
X509ExtensionException- on extension handling errors.
-
set
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:
IOException- on errors.
-
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() -
equals
-