public class CertificateX509Key extends java.lang.Object implements CertAttrSet, java.io.Serializable
CertAttrSet,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
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 |
KEY |
static java.lang.String |
NAME
Sub attributes name for this CertAttrSet.
|
| Constructor and Description |
|---|
CertificateX509Key(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
CertificateX509Key(java.io.InputStream in)
Create the object, decoding the values from the passed stream.
|
CertificateX509Key(X509Key key)
Default constructor for the certificate attribute.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(java.io.InputStream in)
Decode the key in DER form from the stream.
|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(java.io.OutputStream out)
Encode the key 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 key as printable string.
|
public static final java.lang.String IDENT
public static final java.lang.String NAME
public static final java.lang.String KEY
public CertificateX509Key(X509Key key)
key - the X509Keypublic CertificateX509Key(DerInputStream in) throws java.io.IOException
in - the DerInputStream to read the X509Key from.java.io.IOException - on decoding errors.public CertificateX509Key(java.io.InputStream in)
throws java.io.IOException
in - the InputStream to read the X509Key from.java.io.IOException - on decoding errors.public java.lang.String toString()
toString in interface CertAttrSettoString in class java.lang.Objectpublic void decode(java.io.InputStream in)
throws java.io.IOException
decode in interface CertAttrSetin - the InputStream to unmarshal the contents fromjava.io.IOException - on decoding or validity errors.public void encode(java.io.OutputStream out)
throws java.io.IOException
encode in interface CertAttrSetout - the OutputStream to marshal the contents to.java.io.IOException - on errors.public void set(java.lang.String name,
java.lang.Object obj)
throws java.io.IOException
set in interface CertAttrSetname - 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 CertAttrSetname - 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 CertAttrSetname - the name of the attribute to delete.java.io.IOException - on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames in interface CertAttrSetpublic java.lang.String getName()
getName in interface CertAttrSet