public class PseudoSecurityService extends Object implements SecurityService
| Constructor and Description |
|---|
PseudoSecurityService() |
| Modifier and Type | Method and Description |
|---|---|
void |
associate(Object securityIdentity)
Active
|
Object |
currentState() |
Object |
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.
|
Set<String> |
getLogicalRoles(Principal[] principals,
Set<String> logicalRoles) |
void |
init(Properties props) |
boolean |
isCallerAuthorized(Method method,
InterfaceType type)
Active
|
boolean |
isCallerInRole(String role)
Active
|
Object |
login(String user,
String pass) |
Object |
login(String securityRealm,
String user,
String pass) |
void |
logout(Object securityIdentity)
Active
|
void |
setState(Object o) |
public void init(Properties props)
public Object login(String user, String pass) throws LoginException
login in interface SecurityServiceLoginExceptionpublic Object login(String securityRealm, String user, String pass) throws LoginException
login in interface SecurityServiceLoginExceptionpublic Set<String> getLogicalRoles(Principal[] principals, Set<String> logicalRoles)
public void associate(Object securityIdentity) throws LoginException
SecurityServiceassociate in interface SecurityServiceLoginExceptionpublic Object disassociate()
SecurityServicedisassociate in interface SecurityServicepublic void logout(Object securityIdentity) throws LoginException
SecurityServicelogout in interface SecurityServiceLoginExceptionpublic boolean isCallerInRole(String role)
SecurityServiceisCallerInRole in interface SecurityServicepublic Principal getCallerPrincipal()
SecurityServicegetCallerPrincipal in interface SecurityServicepublic boolean isCallerAuthorized(Method method, InterfaceType type)
SecurityServiceisCallerAuthorized in interface SecurityServicepublic void setState(Object o)
setState in interface SecurityServicepublic Object currentState()
currentState in interface SecurityServiceCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.