Examples of SAMLSecurityContext


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

            }
        } else {
            userRoles = null;
        }
       
        return new SAMLSecurityContext(p, userRoles);
    }
View Full Code Here

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

                    if (roleAttributeName == null || roleAttributeName.length() == 0) {
                        roleAttributeName = SAML_ROLE_ATTRIBUTENAME_DEFAULT;
                    }
                    receivedAssertion = o.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                    roles = SAMLUtils.parseRolesInAssertion(receivedAssertion, roleAttributeName);
                    SAMLSecurityContext context = createSecurityContext(p, roles);
                    context.setIssuer(SAMLUtils.getIssuer(receivedAssertion));
                    context.setAssertionElement(SAMLUtils.getAssertionElement(receivedAssertion));
                    msg.put(SecurityContext.class, context);
                } else {
                    msg.put(SecurityContext.class, createSecurityContext(p));
                }
                break;
View Full Code Here

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

            }
        } else {
            userRoles = null;
        }
       
        return new SAMLSecurityContext(p, userRoles);
    }
View Full Code Here

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

                            SecurityConstants.SAML_ROLE_ATTRIBUTENAME);
                    if (roleAttributeName == null || roleAttributeName.length() == 0) {
                        roleAttributeName = SAML_ROLE_ATTRIBUTENAME_DEFAULT;
                    }
                    roles = SAMLUtils.parseRolesInAssertion(receivedAssertion, roleAttributeName);
                    SAMLSecurityContext context = createSecurityContext(p, roles);
                    context.setIssuer(SAMLUtils.getIssuer(receivedAssertion));
                    context.setAssertionElement(SAMLUtils.getAssertionElement(receivedAssertion));
                    msg.put(SecurityContext.class, context);
                } else {
                    msg.put(SecurityContext.class, createSecurityContext(p));
                }
                break;
View Full Code Here

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

                    if (roleAttributeName == null || roleAttributeName.length() == 0) {
                        roleAttributeName = SAML_ROLE_ATTRIBUTENAME_DEFAULT;
                    }
                    receivedAssertion = o.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                    roles = SAMLUtils.parseRolesInAssertion(receivedAssertion, roleAttributeName);
                    SAMLSecurityContext context = createSecurityContext(p, roles);
                    context.setIssuer(SAMLUtils.getIssuer(receivedAssertion));
                    context.setAssertionElement(SAMLUtils.getAssertionElement(receivedAssertion));
                    msg.put(SecurityContext.class, context);
                } else {
                    msg.put(SecurityContext.class, createSecurityContext(p));
                }
                break;
View Full Code Here

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

            }
        } else {
            userRoles = null;
        }
       
        return new SAMLSecurityContext(p, userRoles);
    }
View Full Code Here

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

                    if (roleAttributeName == null || roleAttributeName.length() == 0) {
                        roleAttributeName = SAML_ROLE_ATTRIBUTENAME_DEFAULT;
                    }
                    receivedAssertion = o.get(WSSecurityEngineResult.TAG_SAML_ASSERTION);
                    roles = SAMLUtils.parseRolesInAssertion(receivedAssertion, roleAttributeName);
                    SAMLSecurityContext context = createSecurityContext(p, roles);
                    context.setIssuer(SAMLUtils.getIssuer(receivedAssertion));
                    context.setAssertionElement(SAMLUtils.getAssertionElement(receivedAssertion));
                    msg.put(SecurityContext.class, context);
                } else {
                    msg.put(SecurityContext.class, createSecurityContext(p));
                }
            }
View Full Code Here

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

            }
        } else {
            userRoles = null;
        }
       
        return new SAMLSecurityContext(p, userRoles);
    }
View Full Code Here

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

            }
        } else {
            userRoles = null;
        }
       
        return new SAMLSecurityContext(p, userRoles);
    }
View Full Code Here

Examples of org.apache.cxf.rt.security.saml.SAMLSecurityContext

       
        ClaimCollection claims = SAMLUtils.getClaims(assertion);
        Set<Principal> roles =
            SAMLUtils.parseRolesFromClaims(claims, roleAttributeName, null);
       
        SAMLSecurityContext context =
            new SAMLSecurityContext(principal, roles, claims);
       
        return context.getUserRoles();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.