Class CRLExtensions
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Extension>
,Collection<Extension>
,List<Extension>
,RandomAccess
,SequencedCollection<Extension>
This class defines the CRL Extensions.
- Version:
- 1.4
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
Fields 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 TypeMethodDescriptionvoid
decode
(InputStream in) Decode the extensions from the InputStream.void
encode
(OutputStream out, boolean isExplicit) Encode the extensions in DER form to the stream.boolean
Get the extension with this alias.Return an enumeration of names of the extensions.int
hashCode()
private void
parseExtension
(Extension ext) void
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
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
-