public class CertGenerator
extends java.lang.Object
Constructor and Description |
---|
CertGenerator(java.lang.String myID,
java.security.PrivateKey myPrivateKey)
Construct a CertGenerator
|
CertGenerator(java.lang.String myID,
java.security.PrivateKey myPrivateKey,
java.security.PublicKey myPublicKey)
Construct a CertGenerator
|
Modifier and Type | Method and Description |
---|---|
java.security.cert.Certificate |
createCert(java.lang.String subjectID)
Generate a certificate that certifies the given subject (and their associated public key)
as a delegate of this generator's identity
|
java.security.cert.Certificate |
createCert(java.lang.String subjectID,
java.security.PublicKey subjectPubKey)
Generate a certificate that certifies the given subject (and their associated public key)
as a delegate of this generator's identity
|
static void |
main(java.lang.String[] argv) |
void |
publishCert(java.lang.String subjectID,
java.security.cert.Certificate cert) |
java.security.PublicKey |
resolvePublicKey(java.lang.String clientID)
Securely resolve a public key for the given handle
|
void |
setCertExpirationInDays(long numDays) |
public CertGenerator(java.lang.String myID, java.security.PrivateKey myPrivateKey) throws java.lang.Exception
java.lang.Exception
public CertGenerator(java.lang.String myID, java.security.PrivateKey myPrivateKey, java.security.PublicKey myPublicKey) throws java.lang.Exception
java.lang.Exception
public void setCertExpirationInDays(long numDays)
public java.security.cert.Certificate createCert(java.lang.String subjectID) throws java.lang.Exception
java.lang.Exception
public java.security.cert.Certificate createCert(java.lang.String subjectID, java.security.PublicKey subjectPubKey) throws java.lang.Exception
java.lang.Exception
public void publishCert(java.lang.String subjectID, java.security.cert.Certificate cert) throws java.lang.Exception
java.lang.Exception
public java.security.PublicKey resolvePublicKey(java.lang.String clientID)
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception