|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.view.keystore.KeyStoreReader
public abstract class KeyStoreReader
Simplifies the communication with a keystore.
Field Summary | |
---|---|
protected static int |
PASSWORD_FIELD_COLUMNS
|
Constructor Summary | |
---|---|
KeyStoreReader(ApplicationContext context)
Creates a KeyStoreReader . |
Method Summary | |
---|---|
protected abstract void |
createKeystore()
|
abstract Enumeration<String> |
getAliases()
Returns the keystore aliases. |
X509Certificate |
getCertificate(String alias)
Returns a X509Certificate in this key store. |
ApplicationContext |
getContext()
|
protected KeyStore |
getKeyStore()
|
Component |
getParent()
|
PrivateKey |
getPrivateKey(String alias)
Returns a PrivateKey isn this key store. |
PrivateKey |
getPrivateKey(String alias,
char[] password)
Returns a PrivateKey isn this key store. |
void |
resetKeystore()
Resets the keystore. |
protected void |
setKeyStore(KeyStore keyStore)
|
void |
setParent(Component parent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int PASSWORD_FIELD_COLUMNS
10
Constructor Detail |
---|
public KeyStoreReader(ApplicationContext context)
KeyStoreReader
.
context
- the ApplicationContext
.Method Detail |
---|
protected abstract void createKeystore() throws KeyStoreReaderException
KeyStoreReaderException
public abstract Enumeration<String> getAliases() throws KeyStoreReaderException, KeyStoreException
KeyStoreReaderException
- if there is a problem opening the Keystore.
KeyStoreException
- if there is a problem opening the Keystore.public PrivateKey getPrivateKey(String alias, char[] password)
PrivateKey
isn this key store.
alias
- the alias of the PrivateKey
.password
- the password of the PrivateKey
.
PrivateKey
in this key store.public ApplicationContext getContext()
public PrivateKey getPrivateKey(String alias)
PrivateKey
isn this key store.
alias
- the alias of the PrivateKey
.
PrivateKey
in this key store.public X509Certificate getCertificate(String alias)
X509Certificate
in this key store.
alias
- the alias of the certificate.
X509Certificate
.protected KeyStore getKeyStore() throws KeyStoreReaderException
KeyStoreReaderException
protected void setKeyStore(KeyStore keyStore)
keyStore
- the keyStore to set.public Component getParent()
public void setParent(Component parent)
parent
- the parent to set.public void resetKeystore()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG