org.apache.cxf.ws.security.wss4j
Class DefaultSecurityContext
java.lang.Object
org.apache.cxf.ws.security.wss4j.DefaultSecurityContext
- All Implemented Interfaces:
- SecurityContext
public class DefaultSecurityContext
- extends Object
- implements SecurityContext
SecurityContext which implements isUserInRole using the
following approach : skip the first Subject principal, and then checks
Groups the principal is a member of
TODO : consider moving this class into common/security
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSecurityContext
public DefaultSecurityContext(Principal p,
Subject subject)
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal in interface SecurityContext
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole in interface SecurityContext
checkGroup
protected boolean checkGroup(Group group,
String role)
Apache CXF