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

public Class CertificateAlgorithmId

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

This class defines the AlgorithmId for the Certificate.
Authors
Amit Kapoor, Hemma Prafullchandra

Field Summary

Modifier and TypeField and Description
private AlgorithmId
public static final String

Constructor Summary

AccessConstructor and Description
public
CertificateAlgorithmId(AlgorithmId
the Algorithm identifier
algId
)

Default constructor for the certificate attribute.

public
CertificateAlgorithmId(DerInputStream
the DerInputStream to read the serial number from.
in
)

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

public
CertificateAlgorithmId(InputStream
the InputStream to read the serial number 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 algorithm identifier in DER form to the stream.

public AlgorithmId
getAlgId()

Get the AlgorithmId value.

public String
toString()

Overrides java.lang.Object.toString.

Return the algorithm identifier as user readable string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

algIdback to summary
private AlgorithmId algId
NAMEback to summary
public static final String NAME

Constructor Detail

CertificateAlgorithmIdback to summary
public CertificateAlgorithmId(AlgorithmId algId)

Default constructor for the certificate attribute.

Parameters
algId:AlgorithmId

the Algorithm identifier

CertificateAlgorithmIdback to summary
public CertificateAlgorithmId(DerInputStream in) throws IOException

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

Parameters
in:DerInputStream

the DerInputStream to read the serial number from.

Exceptions
IOException:
on decoding errors.
CertificateAlgorithmIdback to summary
public CertificateAlgorithmId(InputStream in) throws IOException

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

Parameters
in:InputStream

the InputStream to read the serial number from.

Exceptions
IOException:
on decoding errors.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Implements sun.security.util.DerEncoder.encode.

Encode the algorithm identifier in DER form to the stream.

Parameters
out:DerOutputStream

the DerOutputStream to marshal the contents to.

Annotations
@Override
getAlgIdback to summary
public AlgorithmId getAlgId() throws IOException

Get the AlgorithmId value.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the algorithm identifier as user readable string.