public class

UniqueIdentity

extends Object
java.lang.Object
   ↳ sun.security.x509.UniqueIdentity

Class Overview

This class defines the UniqueIdentity class used by certificates.

Summary

Public Constructors
UniqueIdentity(BitArray id)
The default constructor for this class.
UniqueIdentity(byte[] id)
The default constructor for this class.
UniqueIdentity(DerInputStream in)
Create the object, decoding the values from the passed DER stream.
UniqueIdentity(DerValue derVal)
Create the object, decoding the values from the passed DER stream.
Public Methods
void encode(DerOutputStream out, byte tag)
Encode the UniqueIdentity in DER form to the stream.
boolean[] getId()
Return the unique id.
String toString()
Return the UniqueIdentity as a printable string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UniqueIdentity (BitArray id)

The default constructor for this class.

Parameters
id the byte array containing the unique identifier.

public UniqueIdentity (byte[] id)

The default constructor for this class.

Parameters
id the byte array containing the unique identifier.

public UniqueIdentity (DerInputStream in)

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

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

public UniqueIdentity (DerValue derVal)

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

Parameters
derVal the DerValue decoded from the stream.
Throws
IOException on decoding errors.

Public Methods

public void encode (DerOutputStream out, byte tag)

Encode the UniqueIdentity in DER form to the stream.

Parameters
out the DerOutputStream to marshal the contents to.
tag enocode it under the following tag.
Throws
IOException on errors.

public boolean[] getId ()

Return the unique id.

public String toString ()

Return the UniqueIdentity as a printable string.

Returns
  • a string representation of the object.