Class UniqueIdentity
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.UniqueIdentity
-
public class UniqueIdentity extends java.lang.Object
This class defines the UniqueIdentity class used by certificates.
-
-
Constructor Summary
Constructors Constructor Description UniqueIdentity(byte[] id)
The default constructor for this class.UniqueIdentity(BitArray 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
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
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 java.io.IOException
Create the object, decoding the values from the passed DER stream.- Parameters:
in
- the DerInputStream to read the UniqueIdentity from.- Throws:
java.io.IOException
- on decoding errors.
-
UniqueIdentity
public UniqueIdentity(DerValue derVal) throws java.io.IOException
Create the object, decoding the values from the passed DER stream.- Parameters:
derVal
- the DerValue decoded from the stream.- Throws:
java.io.IOException
- on decoding errors.
-
-
Method Detail
-
toString
public java.lang.String toString()
Return the UniqueIdentity as a printable string.- Overrides:
toString
in classjava.lang.Object
-
encode
public void encode(DerOutputStream out, byte tag) throws java.io.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:
java.io.IOException
- on errors.
-
getId
public boolean[] getId()
Return the unique id.
-
-