| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.extend.server.auth.jaas.keystore.KeyStoreModuleService
public class KeyStoreModuleService
This is keystore login module service. This class sets up keystore login module
| Field Summary | |
|---|---|
protected  org.slf4j.Logger | 
logger
 | 
| Constructor Summary | |
|---|---|
KeyStoreModuleService()
Default constructor  | 
|
| Method Summary | |
|---|---|
 void | 
addUser(String user,
        String passwd)
Adds new user to the store  | 
 void | 
changePassword(String user,
               String oldPassword,
               String newPassword)
Changes the password of the user  | 
 Configuration | 
getConfiguration()
Returns configuration  | 
 String | 
getControlFlag()
Returns control flag  | 
 String | 
getKeyStoreProvider()
Returns keystore provider  | 
 String | 
getKeyStoreType()
Returns keystore type  | 
 String | 
getKeyStoreURL()
Returns keystore url  | 
 String | 
getLoginContext()
Returns login context name  | 
 List<String> | 
listUsers()
Returns a list of all users in the keystore  | 
 String | 
listUsersString()
Lists certificates (users) from the keystore  | 
protected  KeyStore | 
loadKeyStore()
 | 
 void | 
removeUser(String user)
Removes certificate - user  | 
 void | 
setApplicationContext(ApplicationContext context)
Sets application context (module) this service is defined in  | 
 void | 
setConfiguration(Configuration configuration)
Sets configuration  | 
 void | 
setControlFlag(String controlFlag)
Sets control flag  | 
 void | 
setKeyStore(String keystore)
Keystoore location  | 
 void | 
setKeyStorePassword(String password)
Sets keystore password  | 
 void | 
setKeyStoreProvider(String provider)
Sets keystore provider  | 
 void | 
setKeyStoreType(String type)
Sets keystore type  | 
 void | 
setLoginContext(String loginContext)
Sets login context name  | 
 void | 
start()
Starts the service - adding keystore login module to system application configuration entry  | 
 void | 
stop()
 | 
protected  void | 
storeKeyStore(KeyStore keystore)
Stores keystore back to provided resource  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected org.slf4j.Logger logger
| Constructor Detail | 
|---|
public KeyStoreModuleService()
| Method Detail | 
|---|
public void start()
           throws Exception
Exception
public void stop()
          throws Exception
Exception
public String listUsersString()
                       throws Exception
Exception
public List<String> listUsers()
                       throws Exception
Exception
public void changePassword(String user,
                           String oldPassword,
                           String newPassword)
                    throws Exception
user - useroldPassword - old passwordnewPassword - new password
Exception
public void addUser(String user,
                    String passwd)
             throws Exception
user - userpasswd - password
Exception
public void removeUser(String user)
                throws Exception
user - username
Exception
protected KeyStore loadKeyStore()
                         throws KeyStoreException,
                                NoSuchProviderException,
                                MalformedURLException,
                                IOException,
                                NoSuchAlgorithmException,
                                CertificateException
KeyStoreException
NoSuchProviderException
MalformedURLException
IOException
NoSuchAlgorithmException
CertificateException
protected void storeKeyStore(KeyStore keystore)
                      throws KeyStoreException,
                             NoSuchProviderException,
                             MalformedURLException,
                             IOException,
                             NoSuchAlgorithmException,
                             CertificateException
keystore - keystore to be stored
KeyStoreException
NoSuchProviderException
MalformedURLException
IOException
NoSuchAlgorithmException
CertificateExceptionpublic void setKeyStorePassword(String password)
password - keystore password
public void setKeyStore(String keystore)
                 throws IOException
keystore - keystore location
IOExceptionpublic String getKeyStoreURL()
public void setKeyStoreType(String type)
type - keystore typepublic String getKeyStoreType()
public void setKeyStoreProvider(String provider)
provider - keystore providerpublic String getKeyStoreProvider()
public void setLoginContext(String loginContext)
loginContext - login context namepublic String getLoginContext()
public void setControlFlag(String controlFlag)
controlFlag - control flagpublic String getControlFlag()
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration - configuration
public void setApplicationContext(ApplicationContext context)
                           throws BeansException
setApplicationContext in interface ApplicationContextAwarecontext - context
BeansException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||