|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ca.commons.security.KeystoreGUI.CertItem
A representation of a certificate that is displayed in the certificate list.
| Field Summary | |
java.lang.String |
alias
|
boolean |
hasPrivateKey
|
java.security.cert.X509Certificate |
x509Cert
|
| Constructor Summary | |
KeystoreGUI.CertItem(java.lang.String certAlias)
Initialises a certitem with the alias name of a certificate only (the actual cert can be added seperately) |
|
KeystoreGUI.CertItem(java.lang.String certAlias,
java.security.cert.X509Certificate cert)
Initialises a certItem with the alias name of a certificate and the actual certificate data. |
|
| Method Summary | |
void |
addX509Cert(java.security.cert.X509Certificate x)
Adds (or Replaces) the X509Cert data. |
java.lang.String |
getAlias()
returns the raw alias for this cert. |
boolean |
getHasPrivateKey()
|
javax.swing.ImageIcon |
getIcon()
Returns an image representing this CertItem. |
java.lang.String |
getSelectedText()
Returns a formatted string identifying the cert by the alias. |
java.security.cert.X509Certificate |
getX509Cert()
Returns the X509 certificate data (may be null if this hasn't been set). |
void |
setHasPrivateKey(boolean state)
|
java.lang.String |
toString()
Returns a formatted string identifying the cert by the alias. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String alias
public java.security.cert.X509Certificate x509Cert
public boolean hasPrivateKey
| Constructor Detail |
public KeystoreGUI.CertItem(java.lang.String certAlias)
public KeystoreGUI.CertItem(java.lang.String certAlias,
java.security.cert.X509Certificate cert)
cert - the actual X509 Certificate data.| Method Detail |
public void addX509Cert(java.security.cert.X509Certificate x)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getSelectedText()
public java.lang.String getAlias()
public javax.swing.ImageIcon getIcon()
public java.security.cert.X509Certificate getX509Cert()
public void setHasPrivateKey(boolean state)
public boolean getHasPrivateKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||