Examples of Claims


Examples of org.apache.cxf.rs.security.saml.assertion.Claims

    private static final String ROLE_QUALIFIER_PROPERTY = "org.apache.cxf.saml.claims.role.qualifier";
    private static final String ROLE_NAMEFORMAT_PROPERTY = "org.apache.cxf.saml.claims.role.nameformat";
   
    public SecurityContext getSecurityContext(Message message,
            SamlAssertionWrapper wrapper) {
        Claims claims = getClaims(wrapper);
        Subject subject = getSubject(message, wrapper, claims);
        SecurityContext securityContext = doGetSecurityContext(message, subject, claims);
        if (securityContext instanceof SAMLSecurityContext) {
            Element assertionElement = wrapper.getElement();
            ((SAMLSecurityContext)securityContext).setAssertionElement(assertionElement);
View Full Code Here

Examples of org.apache.cxf.rs.security.saml.assertion.Claims

                    claim.getValues().add(attrValue);
                }
                claims.add(claim);
            }
        }
        return new Claims(claims);
    }
View Full Code Here

Examples of org.apache.cxf.rs.security.saml.assertion.Claims

                    claim.getValues().add(attrValue);
                }
                claims.add(claim);
            }
        }
        return new Claims(claims);
    }
View Full Code Here

Examples of org.apache.cxf.rs.security.saml.assertion.Claims

    private SubjectPrincipal p;
    private Claims claims;
    private Claim rolesClaim;
   
    public SAMLSecurityContext(Subject subject, List<Claim> claims) {
        this(new SubjectPrincipal(subject.getName(), subject), new Claims(claims));
    }
View Full Code Here

Examples of org.apache.cxf.rs.security.saml.assertion.Claims

    private static final String ROLE_QUALIFIER_PROPERTY = "org.apache.cxf.saml.claims.role.qualifier";
    private static final String ROLE_NAMEFORMAT_PROPERTY = "org.apache.cxf.saml.claims.role.nameformat";
   
    public SecurityContext getSecurityContext(Message message,
            AssertionWrapper wrapper) {
        Claims claims = getClaims(wrapper);
        Subject subject = getSubject(message, wrapper, claims);
        return doGetSecurityContext(message, subject, claims);
    }
View Full Code Here

Examples of org.apache.cxf.rs.security.saml.assertion.Claims

                    claim.getValues().add(attrValue);
                }
                claims.add(claim);
            }
        }
        return new Claims(claims);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.Claims

*/
public class EntropyUnmarshaller extends AbstractWSTrustObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Claims claims = (Claims) xmlObject;
        XMLHelper.unmarshallToAttributeMap(claims.getUnknownAttributes(), attribute);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.Claims

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Claims claims = (Claims) parentXMLObject;
        claims.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.Claims

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        Claims claims = (Claims) parentXMLObject;
        claims.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

Examples of org.opensaml.ws.wstrust.Claims

*/
public class ClaimsMarshaller extends AbstractWSTrustObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Claims claims = (Claims) xmlObject;
        if (claims.getDialect() != null) {
            domElement.setAttributeNS(null, Claims.DIALECT_ATTRIB_NAME, claims.getDialect());
        }
       
        XMLHelper.marshallAttributeMap(claims.getUnknownAttributes(), domElement);
    }
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.