|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines the facilities needed for keystore operations used by OpenEMed.
| Method Summary | |
java.security.cert.Certificate |
createCertificate(java.security.Principal subject,
java.security.KeyPair sKP,
java.security.Principal issuer,
java.security.KeyPair iKP)
Create a certificate for the subject and issued by the issuer. |
java.security.KeyPair |
createKeypair()
Generate a new keypair |
java.security.KeyStore |
createKeystore()
Create an empty keystore using the provider and type |
java.security.Principal |
createPrincipal(java.lang.String derString)
Create a principal/name/distinguished name for the data. |
java.security.Principal |
createPrincipal(java.lang.String[] ids,
java.lang.String[] values)
Create a principal/name/distinguished name for the data. |
java.lang.String |
getExpireDate(java.security.cert.Certificate cert)
Get the expirattion date for the certificate |
java.lang.String |
getIssuerAlias(java.security.cert.Certificate cert)
Get the alias for the issuer of the certificate |
java.security.Principal |
getIssuerPrincipal(java.security.cert.Certificate cert)
Get the principal of the issuer of the certificate |
java.lang.String |
getKeyAlgorithm()
Get the current algorithm for generating key pairs |
java.lang.String |
getSigningAlgorithm(java.security.cert.Certificate cert)
Get the current algorithm used for signing this certificate |
java.lang.String |
getSubjAlias(java.security.cert.Certificate cert)
Get the alias for the certificate |
java.security.Principal |
getSubjPrincipal(java.security.cert.Certificate cert)
Get the principal of the certificate |
boolean |
isValid(java.security.cert.Certificate cert)
Test the date or other validity of the certificate |
void |
setKeyAlgorithm(java.lang.String inKeyAlgoritm)
Get the current algorithm for generating key pairs |
void |
setKeystoreProvider(java.lang.String inKeystoreProvider)
Set the provider for creating keystores |
void |
setKeystoreType(java.lang.String inKeystoreType)
Set the keystore type to use when creating keystores |
void |
setMinimumKeyLength(int keyLength)
Set the minimum key length which newly created certificates use |
void |
setMinimumKeyLength(java.lang.String keyLength)
Set the minimum key length which newly created certificates use |
void |
setMonthsOfCertificate(int numOfMonths)
Set the months for which newly created certificates are valid |
void |
setMonthsOfCertificate(java.lang.String numOfMonths)
Set the months for which newly created certificates are valid |
void |
setMsgArea(javax.swing.JTextArea inMsgArea)
Set the text area for message output |
void |
setVerbose(boolean verbose)
Set the verbose flag which controls output to Sysout, default is false. |
void |
setVerbose(java.lang.String verbose)
Set the verbose flag which controls output to Sysout, default is false. |
| Method Detail |
public java.security.KeyPair createKeypair()
public void setMonthsOfCertificate(int numOfMonths)
numOfMonths - is the number of months to be validpublic void setMonthsOfCertificate(java.lang.String numOfMonths)
numOfMonths - is the number of months to be validpublic void setMinimumKeyLength(int keyLength)
keyLength - is the key length, usually in bitspublic void setMinimumKeyLength(java.lang.String keyLength)
keyLength - is the key length, usually in bitspublic void setVerbose(boolean verbose)
public void setVerbose(java.lang.String verbose)
verbose - is string representation for true...public void setMsgArea(javax.swing.JTextArea inMsgArea)
public java.security.Principal createPrincipal(java.lang.String[] ids,
java.lang.String[] values)
ids - is an array of known names; fullname_statevalues - are the corresponding values for the ids
public java.security.Principal createPrincipal(java.lang.String derString)
derString - is a string containing a der encoded distinguised name
public java.security.cert.Certificate createCertificate(java.security.Principal subject,
java.security.KeyPair sKP,
java.security.Principal issuer,
java.security.KeyPair iKP)
subject - is the principal data wanting a certificateissuer - is the principal data for the issueriKP - is the keypair of the issuer
public java.security.Principal getSubjPrincipal(java.security.cert.Certificate cert)
cert - is the certificate from which to extract the principal
public java.security.Principal getIssuerPrincipal(java.security.cert.Certificate cert)
cert - is the certificate from which to extract the principal
public java.lang.String getSigningAlgorithm(java.security.cert.Certificate cert)
public java.lang.String getSubjAlias(java.security.cert.Certificate cert)
cert - is the certificate from which to extract the alias
public java.lang.String getIssuerAlias(java.security.cert.Certificate cert)
cert - is the certificate from which to extract the alias
public java.lang.String getExpireDate(java.security.cert.Certificate cert)
cert - is the certificate whose date is requested
public void setKeyAlgorithm(java.lang.String inKeyAlgoritm)
public java.lang.String getKeyAlgorithm()
public void setKeystoreType(java.lang.String inKeystoreType)
inKeystoreType - is the keystore typepublic void setKeystoreProvider(java.lang.String inKeystoreProvider)
inKeystoreProvider - is the providerpublic java.security.KeyStore createKeystore()
public boolean isValid(java.security.cert.Certificate cert)
cert - is the certificate to test for validity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||