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

            }
        }
       
        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

                       
                        SamlTokenSecurityEvent samlEvent = (SamlTokenSecurityEvent)event;
                        receivedAssertion = samlEvent.getSamlAssertionWrapper();
                        if (receivedAssertion != null) {
                            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));
                }
            }
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.