public class UniqueIdentity
extends java.lang.Object
| Constructor and Description |
|---|
UniqueIdentity(com.tencent.kona.sun.security.util.BitArray id)
The default constructor for this class.
|
UniqueIdentity(byte[] id)
The default constructor for this class.
|
UniqueIdentity(com.tencent.kona.sun.security.util.DerInputStream in)
Create the object, decoding the values from the passed DER stream.
|
UniqueIdentity(com.tencent.kona.sun.security.util.DerValue derVal)
Create the object, decoding the values from the passed DER stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.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(com.tencent.kona.sun.security.util.BitArray id)
id - the byte array containing the unique identifier.public UniqueIdentity(byte[] id)
id - the byte array containing the unique identifier.public UniqueIdentity(com.tencent.kona.sun.security.util.DerInputStream in)
throws java.io.IOException
in - the DerInputStream to read the UniqueIdentity from.java.io.IOException - on decoding errors.public UniqueIdentity(com.tencent.kona.sun.security.util.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.Objectpublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out,
byte tag)
out - the DerOutputStream to marshal the contents to.tag - encode it under the following tag.public boolean[] getId()