Examples of SAMLSecurityContext


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

            }
        }
       
        List<String> roles =
            SAMLUtils.parseRolesInAssertion(assertion, roleAttributeName);
        SAMLSecurityContext context = createSecurityContext(principal, roles);
        return context.getUserRoles();
    }
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));
                }
                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

                }
            } else {
                userRoles = null;
            }
           
            SAMLSecurityContext context =
                new SAMLSecurityContext(new SimplePrincipal(name), userRoles);
            context.setIssuer(org.apache.cxf.ws.security.wss4j.SAMLUtils.getIssuer(assertionWrapper));
            context.setAssertionElement(
                org.apache.cxf.ws.security.wss4j.SAMLUtils.getAssertionElement(assertionWrapper));
           
            m.put(SecurityContext.class, context);
        }
    }
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

                    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));
                }
                break;
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.