APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class CertificateX509Key

extends Object
implements DerEncoder
Class Inheritance
All Implemented Interfaces
sun.security.util.DerEncoder
Imports
java.security.PublicKey, java.io.InputStream, .IOException, sun.security.util.*

This class defines the X509Key attribute for the Certificate.
Authors
Amit Kapoor, Hemma Prafullchandra
See Also
DerEncoder

Field Summary

Modifier and TypeField and Description
private PublicKey
public static final String

Constructor Summary

AccessConstructor and Description
public
CertificateX509Key(PublicKey
the X509Key
key
)

Default constructor for the certificate attribute.

public
CertificateX509Key(DerInputStream
the DerInputStream to read the X509Key from.
in
)

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

public
CertificateX509Key(InputStream
the InputStream to read the X509Key from.
in
)

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

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to marshal the contents to.
out
)

Implements sun.security.util.DerEncoder.encode.

Encode the key in DER form to the stream.

public PublicKey
getKey()

Get the PublicKey value.

public String
toString()

Overrides java.lang.Object.toString.

Return the key as printable string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyback to summary
private PublicKey key
NAMEback to summary
public static final String NAME

Constructor Detail

CertificateX509Keyback to summary
public CertificateX509Key(PublicKey key)

Default constructor for the certificate attribute.

Parameters
key:PublicKey

the X509Key

CertificateX509Keyback to summary
public CertificateX509Key(DerInputStream in) throws IOException

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

Parameters
in:DerInputStream

the DerInputStream to read the X509Key from.

Exceptions
IOException:
on decoding errors.
CertificateX509Keyback to summary
public CertificateX509Key(InputStream in) throws IOException

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

Parameters
in:InputStream

the InputStream to read the X509Key from.

Exceptions
IOException:
on decoding errors.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Encode the key in DER form to the stream.

Parameters
out:DerOutputStream

the DerOutputStream to marshal the contents to.

Annotations
@Override
getKeyback to summary
public PublicKey getKey()

Get the PublicKey value.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the key as printable string.