com.sun.j2ee.blueprints.petstore.util
Interface SecurityAdapter
- All Known Implementing Classes:
- J2eeSecurityAdapter
- public interface SecurityAdapter
This interface is implemented by a class that contains
non-portable security code.
Method Summary |
void |
addUser(java.lang.String realmName,
java.lang.String group,
java.lang.String userName,
java.lang.String password)
This method adds a user with the specified password to
the specified group within a realm. |
void |
loginUser(java.lang.String userName,
java.lang.String password,
javax.servlet.http.HttpSession session)
Programatically Logs a user into the form based login
mechamism of a web server when a new account is created. |
addUser
public void addUser(java.lang.String realmName,
java.lang.String group,
java.lang.String userName,
java.lang.String password)
throws DuplicateAccountException
- This method adds a user with the specified password to
the specified group within a realm.
- Throws:
- DupplicateAccountException - if the userName
already exists
loginUser
public void loginUser(java.lang.String userName,
java.lang.String password,
javax.servlet.http.HttpSession session)
- Programatically Logs a user into the form based login
mechamism of a web server when a new account is created.
This prevents the user from having to log in after
a new account is created.
Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.