public interface SecurityService<T> extends Service
Modifier and Type | Method and Description |
---|---|
void |
associate(T securityIdentity)
Active
|
java.lang.Object |
currentState() |
T |
disassociate()
Active
|
java.security.Principal |
getCallerPrincipal()
Implementors are encouraged to return a java.security.Principal
object that implements org.apache.openejb.spi.CallerPrincipal
JAAS LoginModule implementors are encouraged to use the CallerPrincipal
interface to denote the best fitting Principal for getCallerPrincipal.
|
boolean |
isCallerAuthorized(java.lang.reflect.Method method,
InterfaceType type)
Active
|
boolean |
isCallerInRole(java.lang.String role)
Active
|
T |
login(java.lang.String user,
java.lang.String pass) |
T |
login(java.lang.String securityRealm,
java.lang.String user,
java.lang.String pass) |
void |
logout(T securityIdentity)
Active
|
void |
onLogout(HttpServletRequest request)
Called when request.logout() is triggered.
|
void |
setState(java.lang.Object o) |
T login(java.lang.String user, java.lang.String pass) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
T login(java.lang.String securityRealm, java.lang.String user, java.lang.String pass) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
void associate(T securityIdentity) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
T disassociate()
void logout(T securityIdentity) throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
boolean isCallerInRole(java.lang.String role)
java.security.Principal getCallerPrincipal()
boolean isCallerAuthorized(java.lang.reflect.Method method, InterfaceType type)
void setState(java.lang.Object o)
java.lang.Object currentState()
void onLogout(HttpServletRequest request)
request
- the http request triggering the logout.