|
||||||||||
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 |
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 |
Methods inherited from interface org.apache.openejb.spi.Service |
---|
init |
Method Detail |
---|
T login(String user, String pass) throws LoginException
LoginException
T login(String securityRealm, String user, String pass) throws LoginException
LoginException
void associate(T securityIdentity) throws LoginException
LoginException
T disassociate()
void logout(T securityIdentity) throws LoginException
LoginException
boolean isCallerInRole(String role)
Principal getCallerPrincipal()
boolean isCallerAuthorized(Method method, InterfaceType type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |