|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.gui.editors.keystore2.CredentialStore
public class CredentialStore
The abstraction of credential store that can provide local stored credentials as well as other types of credentials from the VO entities
Constructor Summary | |
---|---|
CredentialStore(java.lang.String keystore,
java.lang.String type,
char[] password,
ITableKey accounts,
IPreferences prefs)
|
Method Summary | |
---|---|
void |
deleteEntry(java.lang.String alias)
Delete the specified entry |
com.intel.gpe.security.credstore.Account |
getAccount(java.lang.String alias)
|
java.util.List<java.lang.String> |
getAccountAliases()
|
java.util.List<java.lang.String> |
getCertAliases()
Get the list of certificate type aliases |
java.security.cert.X509Certificate |
getCertificate(java.lang.String alias)
Get the certificate associated with the given alias |
java.lang.String |
getCertificateAlias(java.security.cert.X509Certificate cert)
Get the alias of the first entry matching the specified certificate. |
java.security.cert.X509Certificate[] |
getCertificates(java.lang.String alias)
Get the certificate chain associated with the given alias |
com.intel.gpe.security.Credential |
getCredential(java.lang.String alias,
char[] password)
Get the credential associated with the alias |
java.util.List<java.lang.String> |
getKeyAliases()
Get the list of credstore key entry aliases |
java.util.List<java.security.cert.X509Certificate> |
getTrustedCertificates()
Get the list of trusted certificates |
boolean |
isAccountEntry(java.lang.String alias)
Check if the specified alias refers an account entry |
boolean |
isCertEntry(java.lang.String alias)
Check if the specified alias refers a certificate entry |
boolean |
isKeyEntry(java.lang.String alias)
Check if the specified alias corresponds to the key entry |
void |
putAccount(java.lang.String accountName,
com.intel.gpe.security.credstore.Account newAccount)
|
void |
putCertificate(java.lang.String alias,
java.security.cert.X509Certificate cert)
Put the certificate into the keystore |
void |
setCredential(java.lang.String alias,
com.intel.gpe.security.Credential credential,
char[] password)
Set the credetial for the alias |
void |
store(IPreferences prefs)
Store the keystore in the file and accounts in the registry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialStore(java.lang.String keystore, java.lang.String type, char[] password, ITableKey accounts, IPreferences prefs) throws com.intel.gpe.security.credstore.CredStoreException
com.intel.gpe.security.credstore.CredStoreException
Method Detail |
---|
public void store(IPreferences prefs) throws com.intel.gpe.security.credstore.CredStoreException
com.intel.gpe.security.credstore.CredStoreException
public com.intel.gpe.security.Credential getCredential(java.lang.String alias, char[] password) throws com.intel.gpe.security.credstore.CredStoreException
alias
- - the aliaspassword
- - the entry password
com.intel.gpe.security.credstore.CredStoreException
public void setCredential(java.lang.String alias, com.intel.gpe.security.Credential credential, char[] password) throws com.intel.gpe.security.credstore.CredStoreException
alias
- - the aliascredential
- - the credentialpassword
- - the entry password
com.intel.gpe.security.credstore.CredStoreException
public java.util.List<java.lang.String> getKeyAliases() throws com.intel.gpe.security.credstore.CredStoreException
com.intel.gpe.security.credstore.CredStoreException
java.security.KeyStoreException
public java.util.List<java.lang.String> getCertAliases() throws com.intel.gpe.security.credstore.CredStoreException
com.intel.gpe.security.credstore.CredStoreException
public java.security.cert.X509Certificate getCertificate(java.lang.String alias) throws java.security.cert.CertificateException
alias
- - the alias
java.security.cert.CertificateException
public java.util.List<java.security.cert.X509Certificate> getTrustedCertificates() throws java.security.cert.CertificateException
java.security.cert.CertificateException
public java.security.cert.X509Certificate[] getCertificates(java.lang.String alias) throws java.security.cert.CertificateException
alias
- alias
java.security.cert.CertificateException
public void putCertificate(java.lang.String alias, java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
alias
- - the aliascert
- - the certificate
java.security.cert.CertificateEncodingException
java.security.KeyStoreException
public java.lang.String getCertificateAlias(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateException
cert
- - the certificate to search
null
if not found
java.security.cert.CertificateException
public boolean isKeyEntry(java.lang.String alias) throws com.intel.gpe.security.credstore.CredStoreException
alias
- - the alias
true
if the alias refers a key entry
com.intel.gpe.security.credstore.CredStoreException
public void deleteEntry(java.lang.String alias) throws com.intel.gpe.security.credstore.CredStoreException
alias
- - the entry alias
com.intel.gpe.security.credstore.CredStoreException
java.security.KeyStoreException
public boolean isAccountEntry(java.lang.String alias)
alias
- - the alias
true
if the alias refers an account entrypublic java.util.List<java.lang.String> getAccountAliases()
public boolean isCertEntry(java.lang.String alias) throws com.intel.gpe.security.credstore.CredStoreException
alias
- - the alias
true
if the alias refers a certificate entry
com.intel.gpe.security.credstore.CredStoreException
public com.intel.gpe.security.credstore.Account getAccount(java.lang.String alias)
public void putAccount(java.lang.String accountName, com.intel.gpe.security.credstore.Account newAccount)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |