com.ibm.cics.server
Class CertificateInfo

java.lang.Object
  extended bycom.ibm.cics.server.CertificateInfo

public class CertificateInfo
extends java.lang.Object

Usage:
This Class provides the Java implementation of CICS API command EXTRACT CERTIFICATE.

The protected constructor obtains the full certificate and the getter methods return the individual values contained within the full certificate.

Version:
02/12/05
Author:
Ian Shore, Adrian Bull

Field Summary
static int ISSUER
           
static int OWNER
           
 
Method Summary
 byte[] getCertificate()
          Usage:
Returns the full certificate obtained by the constructor.
 java.lang.String getCommonName()
          Usage:
Returns the common name from the client certificate obtained by the constructor.
 java.lang.String getCountry()
          Usage:
Returns the country from the client certificate obtained by the constructor.
 java.lang.String getLocality()
          Usage:
Returns the locality from the client certifcate obtained by the constructor.
 java.lang.String getOrganization()
          Usage:
Returns the organization from the client certificate obtained by the constructor.
 java.lang.String getOrgUnit()
          Usage:
Returns the organization unit from the client certificate obtained by the constructor.
 java.lang.String getSerialNum()
          Usage:
Returns the serial number of the certificate assigned by the certificate issuer obtained by the constructor.
 java.lang.String getState()
          Usage:
Returns the state or province from the client certificate obtained by the constructor.
 java.lang.String getUserID()
          Usage:
Returns the userid connected with the client certificate obtained by the constructor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OWNER

public static final int OWNER
See Also:
Constant Field Values

ISSUER

public static final int ISSUER
See Also:
Constant Field Values
Method Detail

getCertificate

public byte[] getCertificate()
Usage:
Returns the full certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE.

Returns:
The full certificate
Throws:
None

getSerialNum

public java.lang.String getSerialNum()
Usage:
Returns the serial number of the certificate assigned by the certificate issuer obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE SERIALNUM.

Returns:
The serial number
Throws:
None

getUserID

public java.lang.String getUserID()
Usage:
Returns the userid connected with the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE USERID.

Returns:
The userid
Throws:
None

getCommonName

public java.lang.String getCommonName()
Usage:
Returns the common name from the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE COMMONNAME.

Returns:
The common name
Throws:
None

getCountry

public java.lang.String getCountry()
Usage:
Returns the country from the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE COUNTRY.

Returns:
The country
Throws:
None

getState

public java.lang.String getState()
Usage:
Returns the state or province from the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE STATE.

Returns:
The state
Throws:
None

getLocality

public java.lang.String getLocality()
Usage:
Returns the locality from the client certifcate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE LOCALITY.

Returns:
The locality
Throws:
None

getOrganization

public java.lang.String getOrganization()
Usage:
Returns the organization from the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE ORGANIZATION.

Returns:
The origization
Throws:
None

getOrgUnit

public java.lang.String getOrgUnit()
Usage:
Returns the organization unit from the client certificate obtained by the constructor. This is equivalent to CICS API command EXTRACT CERTIFICATE ORGUNIT.

Returns:
The organization unit
Throws:
None