public class PKCS10Attributes extends java.lang.Object implements DerEncoder
Attributes ::= SET OF Attribute
PKCS10,
PKCS10Attribute| Constructor and Description |
|---|
PKCS10Attributes()
Default constructor for the PKCS10 attribute.
|
PKCS10Attributes(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
PKCS10Attributes(PKCS10Attribute[] attrs)
Create the object from the array of PKCS10Attribute objects.
|
| 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 other)
Compares this PKCS10Attributes for equality with the specified
object.
|
java.lang.Object |
getAttribute(java.lang.String name)
Get the attribute value.
|
java.util.Collection<PKCS10Attribute> |
getAttributes()
Return a Collection of attributes existing within this
PKCS10Attributes object.
|
java.util.Enumeration<PKCS10Attribute> |
getElements()
Return an enumeration of names of attributes existing within this
attribute.
|
int |
hashCode()
Returns a hashcode value for this PKCS10Attributes.
|
void |
setAttribute(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.String |
toString()
Returns a string representation of this PKCS10Attributes object
in the form of a set of entries, enclosed in braces and separated
by the ASCII characters ", " (comma and space).
|
public PKCS10Attributes()
public PKCS10Attributes(PKCS10Attribute[] attrs)
attrs - the array of PKCS10Attribute objects.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 DerEncoderout - the OutputStream to marshal the contents to.java.io.IOException - on encoding errors.public void setAttribute(java.lang.String name,
java.lang.Object obj)
public java.lang.Object getAttribute(java.lang.String name)
public void deleteAttribute(java.lang.String name)
public java.util.Enumeration<PKCS10Attribute> getElements()
public java.util.Collection<PKCS10Attribute> getAttributes()
public boolean equals(java.lang.Object other)
other object is an
instanceof PKCS10Attributes, then
all the entries are compared with the entries from this.equals in class java.lang.Objectother - the object to test for equality with this PKCS10Attributes.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
Overrides the toString method of Object.
toString in class java.lang.ObjectCopyright © 2020. All Rights Reserved.