com.ibm.security12.sun.security.x509
Class UniqueIdentity

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.UniqueIdentity

public class UniqueIdentity
extends Object

This class defines the UniqueIdentity class used by certificates.

Version:
1.7
Author:
Amit Kapoor, Hemma Prafullchandra

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueIdentity

public UniqueIdentity(BitArray id)
The default constructor for this class.
Parameters:
id - the byte array containing the unique identifier.

UniqueIdentity

public UniqueIdentity(byte[] id)
The default constructor for this class.
Parameters:
id - the byte array containing the unique identifier.

UniqueIdentity

public UniqueIdentity(DerInputStream in)
               throws IOException
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.

UniqueIdentity

public UniqueIdentity(DerValue derVal)
               throws IOException
Create the object, decoding the values from the passed DER stream.
Parameters:
derVal - the DerValue decoded from the stream.
tag - the tag the value is encoded under.
Throws:
IOException - on decoding errors.
Method Detail

toString

public String toString()
Return the UniqueIdentity as a printable string.
Overrides:
toString in class Object

encode

public void encode(DerOutputStream out,
                   byte tag)
            throws IOException
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.

getId

public boolean[] getId()
Return the unique id.