public class CertificateIssuerName extends java.lang.Object implements CertAttrSet
CertAttrSet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DN_NAME |
static java.lang.String |
IDENT
Identifier for this attribute, to be used with the
get, set, delete methods of Certificate, x509 type.
|
static java.lang.String |
NAME
Sub attributes name for this CertAttrSet.
|
Constructor and Description |
---|
CertificateIssuerName(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
CertificateIssuerName(java.io.InputStream in)
Create the object, decoding the values from the passed stream.
|
CertificateIssuerName(X500Name name)
Default constructor for the certificate attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(java.io.InputStream in)
Decode the name in DER form from the stream.
|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(java.io.OutputStream out)
Encode the name in DER form to the stream.
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.String |
toString()
Return the name as user readable string.
|
public static final java.lang.String IDENT
public static final java.lang.String NAME
public static final java.lang.String DN_NAME
public CertificateIssuerName(X500Name name)
name
- the X500Namepublic CertificateIssuerName(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the X500Name from.java.io.IOException
- on decoding errors.public CertificateIssuerName(java.io.InputStream in) throws java.io.IOException
in
- the InputStream to read the X500Name from.java.io.IOException
- on decoding errors.public java.lang.String toString()
toString
in interface CertAttrSet
toString
in class java.lang.Object
public void encode(java.io.OutputStream out) throws java.io.IOException
encode
in interface CertAttrSet
out
- the DerOutputStream to marshal the contents to.java.io.IOException
- on errors.public void decode(java.io.InputStream in) throws java.io.IOException
decode
in interface CertAttrSet
in
- the InputStream to marshal the contents from.java.io.IOException
- on errors.public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOException
set
in interface CertAttrSet
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.java.io.IOException
- on other errors.public java.lang.Object get(java.lang.String name) throws java.io.IOException
get
in interface CertAttrSet
name
- the name of the attribute to return.java.io.IOException
- on other errors.public void delete(java.lang.String name) throws java.io.IOException
delete
in interface CertAttrSet
name
- the name of the attribute to delete.java.io.IOException
- on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
getName
in interface CertAttrSet