public class

CertificateX509Key

extends Object
implements CertAttrSet<T>
java.lang.Object
   ↳ sun.security.x509.CertificateX509Key

Class Overview

This class defines the X509Key attribute for the Certificate.

See Also

Summary

Constants
String IDENT Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
String KEY
String NAME Sub attributes name for this CertAttrSet.
Public Constructors
CertificateX509Key(PublicKey key)
Default constructor for the certificate attribute.
CertificateX509Key(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
CertificateX509Key(InputStream in)
Create the object, decoding the values from the passed stream.
Public Methods
void delete(String name)
Delete the attribute value.
void encode(OutputStream out)
Encode the key in DER form to the stream.
Object get(String name)
Get the attribute value.
Enumeration<String> getElements()
Return an enumeration of names of attributes existing within this attribute.
String getName()
Return the name of this attribute.
void set(String name, Object obj)
Set the attribute value.
String toString()
Return the key as printable string.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.security.x509.CertAttrSet

Constants

public static final String IDENT

Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

Constant Value: "x509.info.key"

public static final String KEY

Constant Value: "value"

public static final String NAME

Sub attributes name for this CertAttrSet.

Constant Value: "key"

Public Constructors

public CertificateX509Key (PublicKey key)

Default constructor for the certificate attribute.

Parameters
key the X509Key

public CertificateX509Key (DerInputStream in)

Create the object, decoding the values from the passed DER stream.

Parameters
in the DerInputStream to read the X509Key from.
Throws
IOException on decoding errors.

public CertificateX509Key (InputStream in)

Create the object, decoding the values from the passed stream.

Parameters
in the InputStream to read the X509Key from.
Throws
IOException on decoding errors.

Public Methods

public void delete (String name)

Delete the attribute value.

Parameters
name the name of the attribute to delete.
Throws
IOException

public void encode (OutputStream out)

Encode the key in DER form to the stream.

Parameters
out the OutputStream to marshal the contents to.
Throws
IOException on errors.

public Object get (String name)

Get the attribute value.

Parameters
name the name of the attribute to return.
Throws
IOException

public Enumeration<String> getElements ()

Return an enumeration of names of attributes existing within this attribute.

Returns
  • an enumeration of the attribute names.

public String getName ()

Return the name of this attribute.

Returns
  • the name of this CertAttrSet.

public void set (String name, Object obj)

Set the attribute value.

Parameters
name the name of the attribute (e.g. "x509.info.key")
obj the attribute object.
Throws
IOException

public String toString ()

Return the key as printable string.

Returns
  • a string representation of the object.