public interface GridCA
| Modifier and Type | Method and Description |
|---|---|
void |
createDaemon(java.lang.String daemon,
java.lang.String user,
java.lang.String email)
Create private key and certificate for a sdm daemon.
|
java.security.KeyStore |
createDaemonKeyStore(java.lang.String daemon)
Get the keystore for a daemon.
|
java.security.KeyStore |
createKeyStore(java.lang.String username,
char[] keystorePassword,
char[] privateKeyPassword)
Create a keystore which contains the private key and
certificate of an user.
|
java.security.KeyStore |
createSGEDaemonKeyStore(java.lang.String daemon,
char[] keystorePassword,
char[] privateKeyPassword)
Get the keystore for an SGE daemon.
|
void |
createUser(java.lang.String username,
java.lang.String email)
Create private key and certificate for a user.
|
void |
createUser(java.lang.String username,
java.lang.String gecos,
java.lang.String email)
Deprecated.
the gecos field is no longer used, use @{link #createUser(String,String)} instead
|
java.security.cert.X509Certificate |
getCertificate(java.lang.String username)
Get the X.509 certificate of a user.
|
java.security.cert.X509Certificate |
getDaemonCertificate(java.lang.String daemon)
Get the X.509 certificate of a daemon.
|
void |
init(InitCAParameters params)
Initialize the Grid CA
|
void |
renewCaCertificate(int days)
Renew the certificate of the certificate authority
|
java.security.cert.X509Certificate |
renewCertificate(java.lang.String username,
int days)
Renew the certificate of a user.
|
java.security.cert.X509Certificate |
renewDaemonCertificate(java.lang.String daemon,
int days)
Renew the certificate of a daemon.
|
void init(InitCAParameters params) throws GridCAException
params - parmeters for the CAGridCAExceptionvoid createUser(java.lang.String username,
java.lang.String gecos,
java.lang.String email)
throws GridCAException
username - name of the usergecos - gecos of the useremail - email address of the userGridCAException - if the creation of the private key or the certificate failsvoid createUser(java.lang.String username,
java.lang.String email)
throws GridCAException
username - name of the useremail - email address of the userGridCAException - if the creation of the private key or the certificate failsjava.security.cert.X509Certificate getCertificate(java.lang.String username)
throws GridCAException
username - name of the userGridCAException - if the certificate does not existjava.security.cert.X509Certificate getDaemonCertificate(java.lang.String daemon)
throws GridCAException
daemon - common name of the daemonGridCAException - if the certificate does not existjava.security.KeyStore createKeyStore(java.lang.String username,
char[] keystorePassword,
char[] privateKeyPassword)
throws GridCAException
username - name of the userkeystorePassword - password used to encrypt the keystoreprivateKeyPassword - password used to encrypt the keyGridCAException - if the keystore could not be createdjava.security.cert.X509Certificate renewCertificate(java.lang.String username,
int days)
throws GridCAException
username - name of the userdays - validity of the new certificate in daysCAException - if the certificate can not be renewedGridCAExceptionjava.security.cert.X509Certificate renewDaemonCertificate(java.lang.String daemon,
int days)
throws GridCAException
daemon - name of the daemondays - validity of the new certificate in daysGridCAException - if the certificate can not be renewedvoid renewCaCertificate(int days)
throws GridCAException
days - validity of the new certificate in daysGridCAException - if the certificate can not be renewedvoid createDaemon(java.lang.String daemon,
java.lang.String user,
java.lang.String email)
throws GridCAException
daemon - name of the daemonuser - username of the daemon (owner of the process)email - email address of the process ownerGridCAException - if the create of the daemon failedjava.security.KeyStore createDaemonKeyStore(java.lang.String daemon)
throws GridCAException
daemon - name of the daemonGridCAExceptionjava.security.KeyStore createSGEDaemonKeyStore(java.lang.String daemon,
char[] keystorePassword,
char[] privateKeyPassword)
throws GridCAException
daemon - name of the daemonkeystorePassword - password used to encrypt the keystoreprivateKeyPassword - password used to encrypt the keyGridCAException