|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openejb.ri.sp.PseudoSecurityService
public class PseudoSecurityService
| Constructor Summary | |
|---|---|
PseudoSecurityService()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PseudoSecurityService()
| Method Detail |
|---|
public void init(Properties props)
init in interface Service
public Object login(String user,
String pass)
throws LoginException
login in interface SecurityServiceLoginException
public Object login(String securityRealm,
String user,
String pass)
throws LoginException
login in interface SecurityServiceLoginException
public Set<String> getLogicalRoles(Principal[] principals,
Set<String> logicalRoles)
public void associate(Object securityIdentity)
throws LoginException
SecurityService
associate in interface SecurityServiceLoginExceptionpublic Object disassociate()
SecurityService
disassociate in interface SecurityService
public void logout(Object securityIdentity)
throws LoginException
SecurityService
logout in interface SecurityServiceLoginExceptionpublic boolean isCallerInRole(String role)
SecurityService
isCallerInRole in interface SecurityServicepublic Principal getCallerPrincipal()
SecurityService
getCallerPrincipal in interface SecurityService
public boolean isCallerAuthorized(Method method,
InterfaceType type)
SecurityService
isCallerAuthorized in interface SecurityServicepublic void setState(Object o)
setState in interface SecurityServicepublic Object currentState()
currentState in interface SecurityService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||