org.apache.cxf.interceptor.security
Class DefaultSecurityContext
java.lang.Object
org.apache.cxf.interceptor.security.DefaultSecurityContext
- All Implemented Interfaces:
- SecurityContext
public class DefaultSecurityContext
- extends java.lang.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(java.security.Principal p,
javax.security.auth.Subject subject)
getUserPrincipal
public java.security.Principal getUserPrincipal()
- Specified by:
getUserPrincipal in interface SecurityContext
isUserInRole
public boolean isUserInRole(java.lang.String role)
- Specified by:
isUserInRole in interface SecurityContext
checkGroup
protected boolean checkGroup(java.security.acl.Group group,
java.lang.String role)
Apache CXF