📄 jaasmanager.java
字号:
/*
* @author : Neelesh
* @Version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : JAASManager.java
* Creation/Modification History :
*
* Neelesh 10-Dec-2002 Created
*
*/
package oracle.otnsamples.vsm;
/**
* This interface has method declarations for adding/dropping users from a JAAS
* user repository. The implementations will have code for managing users in LDAP,
* XML files,RDBMS or any other storage.
* The concrete implementation to be used is specified in Misc.properties file
* as the value of the key "jaas.manager"
*/
public interface JAASManager {
/**
* Provides a way to initialize the implementations suitably
* @param object
*/
public void init(Object object);
/**
* Add the user and role info to the JAAS repository
* @param userName
* @param password
* @param role
* @throws UserException
*/
public void addUser(String userName,String password,String role) throws UserException;
/**
* Delete a user from JAAS repository
* @param userName
* @throws UserException
*/
public void dropUser(String userName) throws UserException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -