|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityService<T>
The generic value T is any serializable token of the SecurityService implementations choosing. This token only needs to be understandable by the SecurityService internally and need not be a publicly usable class type. No part of the outlying system will make any assumptions as to the type of the object. The use of a java generic type is to express the required symmetry in the interface.
Method Summary | |
---|---|
void |
associate(T securityIdentity)
Active |
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 |
Methods inherited from interface org.apache.openejb.spi.Service |
---|
init |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |