com.ibm.cics.server
Class CertificateInfo

java.lang.Object
  extended by com.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
          Constant - ISSUER
static int OWNER
          Constant - 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 certificate 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 user-id 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
Constant - OWNER

See Also:
Constant Field Values

ISSUER

public static final int ISSUER
Constant - 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

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

getUserID

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

Returns:
The user-id

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

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

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

getLocality

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

Returns:
The locality

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 organization

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