|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.auth.server.session.AuthManagerEJBImpl
public class AuthManagerEJBImpl
The AuthManger
Constructor Summary | |
---|---|
AuthManagerEJBImpl()
|
Method Summary | |
---|---|
void |
addUser(AuthzSubject subject,
java.lang.String username,
java.lang.String password)
Add a user to the internal database |
void |
changePassword(AuthzSubject subject,
java.lang.String username,
java.lang.String password)
Change the password for a user. |
void |
changePasswordHash(AuthzSubject subject,
java.lang.String username,
java.lang.String hash)
Change the hashed password for a user. |
void |
deleteUser(AuthzSubject subject,
java.lang.String username)
Delete a user from the internal database |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
static org.hyperic.hq.auth.shared.AuthManagerLocal |
getOne()
|
Principal |
getPrincipal(AuthzSubject subject)
Get the principle of a user |
int |
getSessionId(java.lang.String user,
java.lang.String password)
Authenticates the user using the given password |
int |
getUnauthSessionId(java.lang.String user)
Get a session ID based on username only |
boolean |
isUser(AuthzSubject subject,
java.lang.String username)
Check existence of a user |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthManagerEJBImpl()
Method Detail |
---|
public int getSessionId(java.lang.String user, java.lang.String password) throws javax.security.auth.login.LoginException, ApplicationException, PasswordIsNullException, ServerStillStartingException, AccountDisabledException
user
- The user to authenticatepassword
- The password for the user
javax.security.auth.login.LoginException
ApplicationException
PasswordIsNullException
ServerStillStartingException
AccountDisabledException
public int getUnauthSessionId(java.lang.String user) throws ApplicationException
user
- The user to authenticate
ApplicationException
- if user is not found
javax.security.auth.login.LoginException
- if user account has been disabledpublic void addUser(AuthzSubject subject, java.lang.String username, java.lang.String password)
subject
- The subject of the currently logged in userusername
- The username to addpassword
- The password for this userpublic void changePassword(AuthzSubject subject, java.lang.String username, java.lang.String password) throws PermissionException
subject
- The subject of the currently logged in userusername
- The username whose password will be changed.password
- The new password for this user
PermissionException
public void changePasswordHash(AuthzSubject subject, java.lang.String username, java.lang.String hash) throws PermissionException
subject
- The subject of the currently logged in userusername
- The username whose password will be changed.password
- The new password for this user
PermissionException
public void deleteUser(AuthzSubject subject, java.lang.String username)
subject
- The subject of the currently logged in userusername
- The user to deletepublic boolean isUser(AuthzSubject subject, java.lang.String username)
subject
- The subject of the currently logged in userusername
- The username of the user to getpublic Principal getPrincipal(AuthzSubject subject)
subject
- The subject for whom to return the principlepublic static org.hyperic.hq.auth.shared.AuthManagerLocal getOne()
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |