Class PKCS10Attributes
java.lang.Object
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PKCS10Attribute>
,Collection<PKCS10Attribute>
,List<PKCS10Attribute>
,RandomAccess
,SequencedCollection<PKCS10Attribute>
,DerEncoder
This class defines the PKCS10 attributes for the request.
- Version:
- 1.10
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Logger
private Hashtable
<String, PKCS10Attribute> private 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
deleteAttribute
(String name) Delete the attribute value.void
derEncode
(OutputStream out) Encode the attributes in DER form to the stream.void
encode
(OutputStream out) Encode the attributes in DER form to the stream.boolean
getAttribute
(String name) Get the attribute value.Return an enumeration of names of attributes existing within this attribute.int
hashCode()
void
setAttribute
(String name, PKCS10Attribute attr) 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 java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed
-
Field Details
-
logger
public static final org.slf4j.Logger logger -
serialVersionUID
private static final long serialVersionUID- See Also:
-
map
-
-
Constructor Details
-
PKCS10Attributes
public PKCS10Attributes()Default constructor for the certificate attribute. -
PKCS10Attributes
Create the object, decoding the values from the passed DER stream.- Parameters:
in
- the DerInputStream to read the attributes from.- Throws:
IOException
- on decoding errors.
-
-
Method Details
-
encode
Encode the attributes in DER form to the stream.- Parameters:
out
- the OutputStream to marshal the contents to.- Throws:
IOException
- on encoding errors.
-
derEncode
Encode the attributes in DER form to the stream. Implements theDerEncoder
interface.- Specified by:
derEncode
in interfaceDerEncoder
- Parameters:
out
- the OutputStream to marshal the contents to.- Throws:
IOException
- on encoding errors.
-
setAttribute
Set the attribute value.- Throws:
IOException
-
getAttribute
Get the attribute value.- Throws:
IOException
-
deleteAttribute
Delete the attribute value.- Throws:
IOException
-
getElements
Return an enumeration of names of attributes existing within this attribute. -
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<PKCS10Attribute>
- Specified by:
hashCode
in interfaceList<PKCS10Attribute>
- Overrides:
hashCode
in classVector<PKCS10Attribute>
-
equals
- Specified by:
equals
in interfaceCollection<PKCS10Attribute>
- Specified by:
equals
in interfaceList<PKCS10Attribute>
- Overrides:
equals
in classVector<PKCS10Attribute>
-