|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pki.PKICert
This class issues certificates.
Field Summary | |
(package private) char[] |
carr
|
(package private) pki.PKIDatabase |
data
|
static boolean |
debug
|
(package private) java.security.KeyStore |
ks
|
(package private) java.util.Properties |
settings
|
Constructor Summary | |
PKICert(java.util.Properties settings)
Initializes this certification object. |
Method Summary | |
java.security.cert.X509Certificate |
createCertificate(java.math.BigInteger serial,
java.security.PublicKey pk,
char[] keypasswd)
Creates a certificate relative to the person certificate with the given serial number. |
java.security.cert.X509Certificate |
createCertificate(java.security.cert.X509Certificate person,
java.security.PublicKey pk,
char[] keypasswd)
Creates a certificate relative to a given person certificate. |
java.security.cert.X509Certificate |
createPersonCertificate(java.security.PublicKey pk,
java.util.Properties p,
char[] keypasswd)
Creates a person certificate and stores it into the database. |
void |
setDatabase(pki.PKIDatabase data)
Registers the database object. |
boolean |
start()
Starts the certification object by loading the keystore. |
void |
stop()
Stops the certificate object. |
boolean |
testCertificate(java.security.cert.X509Certificate cert)
Checks a certificate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean debug
java.util.Properties settings
pki.PKIDatabase data
java.security.KeyStore ks
char[] carr
Constructor Detail |
public PKICert(java.util.Properties settings)
settings
- the PKI settingsMethod Detail |
public void stop()
public boolean start()
public void setDatabase(pki.PKIDatabase data)
data
- the database objectpublic boolean testCertificate(java.security.cert.X509Certificate cert)
cert
- the certificate to check
public java.security.cert.X509Certificate createPersonCertificate(java.security.PublicKey pk, java.util.Properties p, char[] keypasswd)
pk
- the public key to certifyp
- the properties of the certificate (the elements of a X.509 Distinguished Name)keypasswd
- the password for the private keystore
public java.security.cert.X509Certificate createCertificate(java.math.BigInteger serial, java.security.PublicKey pk, char[] keypasswd)
serial
- the serial number of the person certificatepk
- the public key to certifykeypasswd
- the password of the private keystore
public java.security.cert.X509Certificate createCertificate(java.security.cert.X509Certificate person, java.security.PublicKey pk, char[] keypasswd)
person
- the person certifiatepk
- the public key to certifykeypasswd
- the password for the private key store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |