public class PKCS10Attributes extends java.util.Vector<PKCS10Attribute> implements DerEncoder
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Constructor and Description |
---|
PKCS10Attributes()
Default constructor for the certificate attribute.
|
PKCS10Attributes(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteAttribute(java.lang.String name)
Delete the attribute value.
|
void |
derEncode(java.io.OutputStream out)
Encode the attributes in DER form to the stream.
|
void |
encode(java.io.OutputStream out)
Encode the attributes in DER form to the stream.
|
boolean |
equals(java.lang.Object obj) |
PKCS10Attribute |
getAttribute(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<PKCS10Attribute> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
int |
hashCode() |
void |
setAttribute(java.lang.String name,
PKCS10Attribute attr)
Set the attribute value.
|
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
public PKCS10Attributes()
public PKCS10Attributes(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the attributes from.java.io.IOException
- on decoding errors.public void encode(java.io.OutputStream out) throws java.io.IOException
out
- the OutputStream to marshal the contents to.java.io.IOException
- on encoding errors.public void derEncode(java.io.OutputStream out) throws java.io.IOException
DerEncoder
interface.derEncode
in interface DerEncoder
out
- the OutputStream to marshal the contents to.java.io.IOException
- on encoding errors.public void setAttribute(java.lang.String name, PKCS10Attribute attr) throws java.io.IOException
java.io.IOException
public PKCS10Attribute getAttribute(java.lang.String name) throws java.io.IOException
java.io.IOException
public void deleteAttribute(java.lang.String name) throws java.io.IOException
java.io.IOException
public java.util.Enumeration<PKCS10Attribute> getElements()
public int hashCode()
hashCode
in interface java.util.Collection<PKCS10Attribute>
hashCode
in interface java.util.List<PKCS10Attribute>
hashCode
in class java.util.Vector<PKCS10Attribute>
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection<PKCS10Attribute>
equals
in interface java.util.List<PKCS10Attribute>
equals
in class java.util.Vector<PKCS10Attribute>