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

public Class UniqueIdentity

extends Object
Class Inheritance
Imports
java.io.IOException, sun.security.util.BitArray, .DerInputStream, .DerOutputStream, .DerValue

This class defines the UniqueIdentity class used by certificates.
Authors
Amit Kapoor, Hemma Prafullchandra

Field Summary

Modifier and TypeField and Description
private final BitArray

Constructor Summary

AccessConstructor and Description
public
UniqueIdentity(BitArray
the byte array containing the unique identifier.
id
)

The default constructor for this class.

public
UniqueIdentity(byte[]
the byte array containing the unique identifier.
id
)

The default constructor for this class.

public
UniqueIdentity(DerInputStream
the DerInputStream to read the UniqueIdentity from.
in
)

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

public
UniqueIdentity(DerValue
the DerValue decoded from the stream.
derVal
)

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

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to marshal the contents to.
out
,
byte
encode it under the following tag.
tag
)

Encode the UniqueIdentity in DER form to the stream.

public boolean[]
getId()

Return the unique id.

public String
toString()

Overrides java.lang.Object.toString.

Return the UniqueIdentity as a printable string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

idback to summary
private final BitArray id

Constructor Detail

UniqueIdentityback to summary
public UniqueIdentity(BitArray id)

The default constructor for this class.

Parameters
id:BitArray

the byte array containing the unique identifier.

UniqueIdentityback to summary
public UniqueIdentity(byte[] id)

The default constructor for this class.

Parameters
id:byte[]

the byte array containing the unique identifier.

UniqueIdentityback to summary
public UniqueIdentity(DerInputStream in) throws IOException

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

Parameters
in:DerInputStream

the DerInputStream to read the UniqueIdentity from.

Exceptions
IOException:
on decoding errors.
UniqueIdentityback to summary
public UniqueIdentity(DerValue derVal) throws IOException

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

Parameters
derVal:DerValue

the DerValue decoded from the stream.

Exceptions
IOException:
on decoding errors.

Method Detail

encodeback to summary
public void encode(DerOutputStream out, byte tag)

Encode the UniqueIdentity in DER form to the stream.

Parameters
out:DerOutputStream

the DerOutputStream to marshal the contents to.

tag:byte

encode it under the following tag.

getIdback to summary
public boolean[] getId()

Return the unique id.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return the UniqueIdentity as a printable string.