public interface SecurityService<T> extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
associate(T securityIdentity)
Active
|
Object |
currentState() |
T |
disassociate()
Active
|
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(Method method,
InterfaceType type)
Active
|
boolean |
isCallerInRole(String role)
Active
|
T |
login(String user,
String pass) |
T |
login(String securityRealm,
String user,
String pass) |
void |
logout(T securityIdentity)
Active
|
void |
setState(Object o) |
T login(String user, String pass) throws LoginException
LoginExceptionT login(String securityRealm, String user, String pass) throws LoginException
LoginExceptionvoid associate(T securityIdentity) throws LoginException
LoginExceptionT disassociate()
void logout(T securityIdentity) throws LoginException
LoginExceptionboolean isCallerInRole(String role)
Principal getCallerPrincipal()
boolean isCallerAuthorized(Method method, InterfaceType type)
void setState(Object o)
Object currentState()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.