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

public Class CertificateSubjectName

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

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

Field Summary

Modifier and TypeField and Description
private X500Name
private X500Principal
public static final String

Constructor Summary

AccessConstructor and Description
public
CertificateSubjectName(X500Name
the X500Name
name
)

Default constructor for the certificate attribute.

public
CertificateSubjectName(DerInputStream
the DerInputStream to read the X500Name from.
in
)

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

public
CertificateSubjectName(InputStream
the InputStream to read the X500Name 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 name in DER form to the stream.

public String
toString()

Overrides java.lang.Object.toString.

Return the name as user readable string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

dnNameback to summary
private X500Name dnName
dnPrincipalback to summary
private X500Principal dnPrincipal
NAMEback to summary
public static final String NAME

Constructor Detail

CertificateSubjectNameback to summary
public CertificateSubjectName(X500Name name)

Default constructor for the certificate attribute.

Parameters
name:X500Name

the X500Name

CertificateSubjectNameback to summary
public CertificateSubjectName(DerInputStream in) throws IOException

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

Parameters
in:DerInputStream

the DerInputStream to read the X500Name from.

Exceptions
IOException:
on decoding errors.
CertificateSubjectNameback to summary
public CertificateSubjectName(InputStream in) throws IOException

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

Parameters
in:InputStream

the InputStream to read the X500Name from.

Exceptions
IOException:
on decoding errors.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Encode the name in DER form to the stream.

Parameters
out:DerOutputStream

the DerOutputStream to marshal the contents to.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the name as user readable string.