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

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

public class CertificateIssuerUniqueIdentity
extends Object
implements CertAttrSet

This class defines the subject/issuer unique identity attribute for the Certificate.

Version:
1.7
Author:
Amit Kapoor, Hemma Prafullchandra
See Also:
CertAttrSet

Field Summary
static String ID
           
static String IDENT
          Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
static String NAME
          Sub attributes name for this CertAttrSet.
 
Constructor Summary
CertificateIssuerUniqueIdentity(DerInputStream in)
          Create the object, decoding the values from the passed DER stream.
CertificateIssuerUniqueIdentity(DerValue val)
          Create the object, decoding the values from the passed DER value.
CertificateIssuerUniqueIdentity(InputStream in)
          Create the object, decoding the values from the passed stream.
CertificateIssuerUniqueIdentity(UniqueIdentity id)
          Default constructor for the certificate attribute.
 
Method Summary
 void decode(InputStream in)
          Decode the identity in DER form from the stream.
 void delete(String name)
          Delete the attribute value.
 void encode(OutputStream out)
          Encode the identity in DER form to the stream.
 Object get(String name)
          Get the attribute value.
 Enumeration getElements()
          Return an enumeration of names of attributes existing within this attribute.
 String getName()
          Return the name of this attribute.
 void set(String name, Object obj)
          Set the attribute value.
 String toString()
          Return the identity as user readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

IDENT

public static final String IDENT
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

NAME

public static final String NAME
Sub attributes name for this CertAttrSet.

ID

public static final String ID
Constructor Detail

CertificateIssuerUniqueIdentity

public CertificateIssuerUniqueIdentity(UniqueIdentity id)
Default constructor for the certificate attribute.
Parameters:
key - the UniqueIdentity

CertificateIssuerUniqueIdentity

public CertificateIssuerUniqueIdentity(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.

CertificateIssuerUniqueIdentity

public CertificateIssuerUniqueIdentity(InputStream in)
                                throws IOException
Create the object, decoding the values from the passed stream.
Parameters:
in - the InputStream to read the UniqueIdentity from.
Throws:
IOException - on decoding errors.

CertificateIssuerUniqueIdentity

public CertificateIssuerUniqueIdentity(DerValue val)
                                throws IOException
Create the object, decoding the values from the passed DER value.
Parameters:
in - the DerValue to read the UniqueIdentity from.
Throws:
IOException - on decoding errors.
Method Detail

toString

public String toString()
Return the identity as user readable string.
Specified by:
toString in interface CertAttrSet
Overrides:
toString in class Object

decode

public void decode(InputStream in)
            throws IOException
Decode the identity in DER form from the stream.
Specified by:
decode in interface CertAttrSet
Parameters:
in - the InputStream to unmarshal the contents from.
Throws:
IOException - on errors.

encode

public void encode(OutputStream out)
            throws IOException
Encode the identity in DER form to the stream.
Specified by:
encode in interface CertAttrSet
Parameters:
out - the DerOutputStream to marshal the contents to.
Throws:
IOException - on errors.

set

public void set(String name,
                Object obj)
         throws IOException
Set the attribute value.
Specified by:
set in interface CertAttrSet

get

public Object get(String name)
           throws IOException
Get the attribute value.
Specified by:
get in interface CertAttrSet

delete

public void delete(String name)
            throws IOException
Delete the attribute value.
Specified by:
delete in interface CertAttrSet

getElements

public Enumeration getElements()
Return an enumeration of names of attributes existing within this attribute.
Specified by:
getElements in interface CertAttrSet

getName

public String getName()
Return the name of this attribute.
Specified by:
getName in interface CertAttrSet