Package netscape.security.pkcs
Class PKCS10Attributes
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.Vector<PKCS10Attribute>
-
- netscape.security.pkcs.PKCS10Attributes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<PKCS10Attribute>
,java.util.Collection<PKCS10Attribute>
,java.util.List<PKCS10Attribute>
,java.util.RandomAccess
,DerEncoder
public class PKCS10Attributes extends java.util.Vector<PKCS10Attribute> implements DerEncoder
This class defines the PKCS10 attributes for the request.- Version:
- 1.10
- Author:
- Amit Kapoor, Hemma Prafullchandra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PKCS10Attributes()
Default constructor for the certificate attribute.PKCS10Attributes(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
-
-
-
-
Constructor Detail
-
PKCS10Attributes
public PKCS10Attributes()
Default constructor for the certificate attribute.
-
PKCS10Attributes
public PKCS10Attributes(DerInputStream in) throws java.io.IOException
Create the object, decoding the values from the passed DER stream.- Parameters:
in
- the DerInputStream to read the attributes from.- Throws:
java.io.IOException
- on decoding errors.
-
-
Method Detail
-
encode
public void encode(java.io.OutputStream out) throws java.io.IOException
Encode the attributes in DER form to the stream.- Parameters:
out
- the OutputStream to marshal the contents to.- Throws:
java.io.IOException
- on encoding errors.
-
derEncode
public void derEncode(java.io.OutputStream out) throws java.io.IOException
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:
java.io.IOException
- on encoding errors.
-
setAttribute
public void setAttribute(java.lang.String name, PKCS10Attribute attr) throws java.io.IOException
Set the attribute value.- Throws:
java.io.IOException
-
getAttribute
public PKCS10Attribute getAttribute(java.lang.String name) throws java.io.IOException
Get the attribute value.- Throws:
java.io.IOException
-
deleteAttribute
public void deleteAttribute(java.lang.String name) throws java.io.IOException
Delete the attribute value.- Throws:
java.io.IOException
-
getElements
public java.util.Enumeration<PKCS10Attribute> getElements()
Return an enumeration of names of attributes existing within this attribute.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Collection<PKCS10Attribute>
- Specified by:
hashCode
in interfacejava.util.List<PKCS10Attribute>
- Overrides:
hashCode
in classjava.util.Vector<PKCS10Attribute>
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacejava.util.Collection<PKCS10Attribute>
- Specified by:
equals
in interfacejava.util.List<PKCS10Attribute>
- Overrides:
equals
in classjava.util.Vector<PKCS10Attribute>
-
-