Class CertificateExtensions
- 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 StringIdentifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.private LinkedHashMap<String, Extension> static final Stringnameprivate static final longFields inherited from class java.util.Vector
capacityIncrement, elementCount, elementDataFields 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 TypeMethodDescriptionvoiddecode(InputStream in) Decode the extensions from the InputStream.voiddecodeEx(InputStream in) Decode the extensions from the InputStream.voidDelete the attribute value.voidencode(OutputStream out) Encode the extensions in DER form to the stream.booleanGet the attribute value.Returns an enumeration of the names of the attributes existing within this attribute.Return an enumeration of names of attributes existing within this attribute.getName()Return the name of this attribute.getNames()inthashCode()voidparseExtension(Extension ext) private voidreadObject(ObjectInputStream stream) voidSet the attribute value.private voidwriteObject(ObjectOutputStream stream) 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 org.mozilla.jss.netscape.security.x509.CertAttrSet
toStringMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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
-
CertificateExtensions
public CertificateExtensions()Default constructor for the certificate attribute. -
CertificateExtensions
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:
decodein interfaceCertAttrSet- Parameters:
in- the InputStream to unmarshal the contents from.- Throws:
IOException- on decoding or validity errors.
-
decodeEx
Decode the extensions from the InputStream.- Parameters:
in- the InputStream to unmarshal the contents from.- Throws:
IOException- on decoding or validity errors.
-
writeObject
- Throws:
CertificateExceptionIOException
-
readObject
- Throws:
CertificateExceptionIOException
-
encode
Encode the extensions in DER form to the stream.- Specified by:
encodein 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:
setin 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:
getin 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:
deletein interfaceCertAttrSet- Parameters:
name- the extension name used in the lookup.- Throws:
IOException- if named extension is not found.
-
getNames
-
getAttributes
Return an enumeration of names of attributes existing within this attribute. -
getAttributeNames
Description copied from interface:CertAttrSetReturns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNamesin interfaceCertAttrSet- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getNamein interfaceCertAttrSet- Returns:
- the name of this CertAttrSet.
-
hashCode
public int hashCode() -
equals
-