Class Extensions
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Extension>
,Collection<Extension>
,List<Extension>
,RandomAccess
,SequencedCollection<Extension>
,CertAttrSet
This class defines the Extensions attribute for the Certificate.
- Version:
- 1.11
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.static final String
nameprivate 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 for the certificate attribute.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
Delete the attribute value.void
encode
(OutputStream out) Encode the extensions in DER form to the stream.boolean
Get the attribute value.Return an enumeration of names of attributes existing within this attribute.getName()
Return the name of this attribute.int
hashCode()
void
parseExtension
(Extension ext) void
Set the attribute value.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 org.mozilla.jss.netscape.security.x509.CertAttrSet
toString
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:
-
IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.- See Also:
-
NAME
name- See Also:
-
map
-
-
Constructor Details
-
Extensions
public Extensions()Default constructor for the certificate attribute. -
Extensions
Create the object, decoding the values from the passed DER stream.- Parameters:
in
- the DerInputStream to read the Extension from.- Throws:
IOException
- on decoding errors.
-
-
Method Details
-
parseExtension
- Throws:
IOException
-
decode
Decode the extensions from the InputStream.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to unmarshal the contents from.- Throws:
IOException
- on decoding or validity errors.
-
encode
Encode the extensions in DER form to the stream.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the DerOutputStream to marshal the contents to.- Throws:
CertificateException
- on encoding errors.IOException
- on errors.
-
set
Set the attribute value.- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the extension name used in the cache.obj
- the object to set.- Throws:
IOException
- if the object could not be cached.
-
get
Get the attribute value.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the extension name used in the lookup.- Returns:
- attribute value
- Throws:
IOException
- if named extension is not found.
-
delete
Delete the attribute value.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the extension name used in the lookup.- Throws:
IOException
- if named extension is not found.
-
getAttributeNames
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
hashCode
public int hashCode() -
equals
-