public class PseudoSecurityService extends java.lang.Object implements SecurityService
Constructor and Description |
---|
PseudoSecurityService() |
Modifier and Type | Method and Description |
---|---|
void |
associate(java.lang.Object securityIdentity)
Active
|
java.lang.Object |
currentState() |
java.lang.Object |
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.
|
java.util.Set<java.lang.String> |
getLogicalRoles(java.security.Principal[] principals,
java.util.Set<java.lang.String> logicalRoles) |
java.util.Set |
getPrincipalsByType(java.lang.Class pType) |
java.security.ProtectionDomain |
getProtectionDomain() |
void |
init(java.util.Properties props) |
boolean |
isCallerAuthorized(java.lang.reflect.Method method,
InterfaceType type)
Active
|
boolean |
isCallerInRole(java.lang.String role)
Active
|
java.lang.Object |
login(java.lang.String user,
java.lang.String pass) |
java.lang.Object |
login(java.lang.String securityRealm,
java.lang.String user,
java.lang.String pass) |
void |
logout(java.lang.Object securityIdentity)
Active
|
void |
onLogout(HttpServletRequest request)
Called when request.logout() is triggered.
|
void |
setState(java.lang.Object o) |
public java.lang.Object login(java.lang.String user, java.lang.String pass) throws javax.security.auth.login.LoginException
login
in interface SecurityService
javax.security.auth.login.LoginException
public java.lang.Object login(java.lang.String securityRealm, java.lang.String user, java.lang.String pass) throws javax.security.auth.login.LoginException
login
in interface SecurityService
javax.security.auth.login.LoginException
public java.util.Set<java.lang.String> getLogicalRoles(java.security.Principal[] principals, java.util.Set<java.lang.String> logicalRoles)
public void associate(java.lang.Object securityIdentity) throws javax.security.auth.login.LoginException
SecurityService
associate
in interface SecurityService
javax.security.auth.login.LoginException
public java.lang.Object disassociate()
SecurityService
disassociate
in interface SecurityService
public void logout(java.lang.Object securityIdentity) throws javax.security.auth.login.LoginException
SecurityService
logout
in interface SecurityService
javax.security.auth.login.LoginException
public boolean isCallerInRole(java.lang.String role)
SecurityService
isCallerInRole
in interface SecurityService
public java.security.Principal getCallerPrincipal()
SecurityService
getCallerPrincipal
in interface SecurityService
public boolean isCallerAuthorized(java.lang.reflect.Method method, InterfaceType type)
SecurityService
isCallerAuthorized
in interface SecurityService
public void setState(java.lang.Object o)
setState
in interface SecurityService
public java.lang.Object currentState()
currentState
in interface SecurityService
public void onLogout(HttpServletRequest request)
SecurityService
onLogout
in interface SecurityService
request
- the http request triggering the logout.public java.util.Set getPrincipalsByType(java.lang.Class pType)
getPrincipalsByType
in interface SecurityService
public java.security.ProtectionDomain getProtectionDomain()
getProtectionDomain
in interface SecurityService