Class PKCS10Attributes
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<PKCS10Attribute>,Collection<PKCS10Attribute>,List<PKCS10Attribute>,RandomAccess,DerEncoder
This class defines the PKCS10 attributes for the request.
- Version:
- 1.10
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Loggerprivate Hashtable<String,PKCS10Attribute> private 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 TypeMethodDescriptionvoiddeleteAttribute(String name) Delete the attribute value.voidderEncode(OutputStream out) Encode the attributes in DER form to the stream.voidencode(OutputStream out) Encode the attributes in DER form to the stream.booleangetAttribute(String name) Get the attribute value.Return an enumeration of names of attributes existing within this attribute.inthashCode()voidsetAttribute(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, 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
-
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 theDerEncoderinterface.- Specified by:
derEncodein 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:
hashCodein interfaceCollection<PKCS10Attribute>- Specified by:
hashCodein interfaceList<PKCS10Attribute>- Overrides:
hashCodein classVector<PKCS10Attribute>
-
equals
- Specified by:
equalsin interfaceCollection<PKCS10Attribute>- Specified by:
equalsin interfaceList<PKCS10Attribute>- Overrides:
equalsin classVector<PKCS10Attribute>
-