|
CICS® Transaction Gateway Programming Reference V3.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.sslight.SSLCert
The SSLCert represents a X.509 vsersion 3 certificate.
Field Summary | |
(package private) int |
alg
|
static int |
C
The country component of the X.500 distinguished name. |
(package private) static byte[] |
CERT_ID
|
static int |
CN
The common name component of the X.500 distinguished name. |
(package private) int |
con
|
(package private) int |
conL
|
(package private) int |
iss
|
(package private) int |
issL
|
static int |
ISSUER
The distinguished issuer name of the X.509 certificate. |
(package private) int[] |
key
|
(package private) int |
keyL
|
static int |
L
The location component of the X.500 distinguished name. |
static int |
O
The organization component of the X.500 distinguished name. |
static int |
OU
The organizational unit component of the X.500 distinguished name. |
(package private) int |
ser
|
(package private) int |
serL
|
(package private) int |
sig
|
(package private) int |
sigAlg
|
(package private) int |
sigL
|
(package private) int |
sub
|
static int |
SUBJECT
The distinguished subject name of the X.509 certificate. |
(package private) int |
subL
|
(package private) int |
val
|
(package private) int |
valL
|
(package private) byte[] |
x509
|
Constructor Summary | |
SSLCert(byte[] cert)
Constructs an X.509 version 3 certificate. |
Method Summary | |
(package private) static void |
|
byte[] |
encode()
Returns the ASN.1/BER encoded certificate representation. |
boolean |
equals(SSLCert cert)
Tests whether the certificate is equal to another certificate. |
byte[] |
fingerprint()
Returns the finger-print of the certificate (MD5 hash of the certificate's content). |
java.lang.String |
getKeyInfo()
Returns the key information. |
java.lang.String |
getNameComponent(int name,
int component)
Returns the name component of the specified X.500 distinguished name included in the certificate. |
byte[] |
getSerial()
Returns the certificate's serial number. |
java.util.Date[] |
getValidity()
Returns the validity time of the certificate. |
byte[][] |
key()
Returns the key assosiated with the X.509 certificate. |
byte |
verify(SSLCert signer)
Verifies the certificate. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ISSUER
public static final int SUBJECT
public static final int CN
public static final int C
public static final int L
public static final int O
public static final int OU
byte[] x509
int[] key
int sigAlg
int alg
int con
int conL
int sig
int sigL
int iss
int issL
int sub
int subL
int val
int valL
int keyL
int ser
int serL
static final byte[] CERT_ID
Constructor Detail |
public SSLCert(byte[] cert) throws com.ibm.sslight.SSLException
cert
- byte array containing ASN.1/BER encoded X.509v3 certificate.SSLException.R_WRONG_DATA
if the certifiacte data cannot be processed
Method Detail |
static void()
public byte[][] key()
public boolean equals(SSLCert cert)
cert
- the certificate.public byte[] encode()
public byte verify(SSLCert signer)
signer
- the certificate or null. If signer is null the
validity check of the certificate is performed. If signer is specified
the signature of the certificate is validated using the key contained in the
signer certificate.public java.lang.String getKeyInfo()
public byte[] getSerial()
public java.lang.String getNameComponent(int name, int component)
name
- the name selection (ISSUER or SUBJECT)component
- the component selection (CN, L, C, O, OU)public java.util.Date[] getValidity()
public byte[] fingerprint()
|
© Copyright IBM Corp. 1994, 1999 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |