public class UniqueIdentity
extends java.lang.Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out,
byte tag)
Encode the UniqueIdentity in DER form to the stream.
|
boolean[] |
getId()
Return the unique id.
|
java.lang.String |
toString()
Return the UniqueIdentity as a printable string.
|
public UniqueIdentity(BitArray id)
id
- the byte array containing the unique identifier.public UniqueIdentity(byte[] id)
id
- the byte array containing the unique identifier.public UniqueIdentity(DerInputStream in) throws java.io.IOException
in
- the DerInputStream to read the UniqueIdentity from.java.io.IOException
- on decoding errors.public UniqueIdentity(DerValue derVal) throws java.io.IOException
derVal
- the DerValue decoded from the stream.java.io.IOException
- on decoding errors.public java.lang.String toString()
toString
in class java.lang.Object
public void encode(DerOutputStream out, byte tag) throws java.io.IOException
out
- the DerOutputStream to marshal the contents to.tag
- enocode it under the following tag.java.io.IOException
- on errors.public boolean[] getId()