Package org.apache.cxf.interceptor.security

Examples of org.apache.cxf.interceptor.security.DefaultSecurityContext


            if (roleClassifier != null && !"".equals(roleClassifier)) {
                RolePrefixSecurityContextImpl securityContext =
                    new RolePrefixSecurityContextImpl(subject, roleClassifier, roleClassifierType);
                return securityContext.getUserRoles();
            } else {
                return new DefaultSecurityContext(principal, subject).getUserRoles();
            }
        }
       
        List<String> roles =
            SAMLUtils.parseRolesInAssertion(assertion, roleAttributeName);
View Full Code Here


     * @param p principal
     * @param subject subject
     * @return security context
     */
    protected SecurityContext doCreateSecurityContext(final Principal p, final Subject subject) {
        return new DefaultSecurityContext(p, subject);
    }
View Full Code Here

        return principal;
    }
   
    protected SecurityContext createSecurityContext(final Principal p, Subject subject) {
        return new DefaultSecurityContext(p, subject);
    }
View Full Code Here

       
        return false;
    }
   
    protected SecurityContext createSecurityContext(final Principal p, Subject subject) {
        return new DefaultSecurityContext(p, subject);
    }
View Full Code Here

                    msg.put(
                        SecurityContext.class,
                        new RolePrefixSecurityContextImpl(subject, roleClassifier, roleClassifierType)
                    );
                } else {
                    msg.put(SecurityContext.class, new DefaultSecurityContext(p, subject));
                }
                break;
            } else if (p != null && isSecurityContextPrincipal(p, wsResult)) {
                msg.put(PRINCIPAL_RESULT, p);
                if (!utWithCallbacks) {
View Full Code Here

            if (roleClassifier != null && !"".equals(roleClassifier)) {
                RolePrefixSecurityContextImpl securityContext =
                    new RolePrefixSecurityContextImpl(subject, roleClassifier, roleClassifierType);
                return securityContext.getUserRoles();
            } else {
                return new DefaultSecurityContext(principal, subject).getUserRoles();
            }
        }
       
        ClaimCollection claims = SAMLUtils.getClaims(assertion);
        Set<Principal> roles =
View Full Code Here

                    msg.put(
                        SecurityContext.class,
                        new RolePrefixSecurityContextImpl(subject, roleClassifier, roleClassifierType)
                    );
                } else {
                    msg.put(SecurityContext.class, new DefaultSecurityContext(p, subject));
                }
                break;
            } else if (p != null && isSecurityContextPrincipal(p, wsResult)) {
                msg.put(PRINCIPAL_RESULT, p);
                if (!utWithCallbacks) {
View Full Code Here

     * @param p principal
     * @param subject subject
     * @return security context
     */
    protected SecurityContext doCreateSecurityContext(final Principal p, final Subject subject) {
        return new DefaultSecurityContext(p, subject);
    }
View Full Code Here

        return principal;
    }
   
    protected SecurityContext createSecurityContext(final Principal p, Subject subject) {
        return new DefaultSecurityContext(p, subject);
    }
View Full Code Here

                            (Principal)bstResults.get(0).get(WSSecurityEngineResult.TAG_PRINCIPAL);
                        message.put(WSS4JInInterceptor.PRINCIPAL_RESULT, principal);                  
                       
                        SecurityContext sc = message.get(SecurityContext.class);
                        if (sc == null || sc.getUserPrincipal() == null) {
                            message.put(SecurityContext.class, new DefaultSecurityContext(principal, null));
                        }

                    }
                } catch (WSSecurityException ex) {
                    throw new Fault(ex);
View Full Code Here

TOP

Related Classes of org.apache.cxf.interceptor.security.DefaultSecurityContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.