org.apache.cxf.rt.security.saml.SAMLUtils.getClaims(assertionWrapper);
Set<Principal> roles =
org.apache.cxf.rt.security.saml.SAMLUtils.parseRolesFromClaims(
claims, roleAttributeName, null);
SAMLSecurityContext context =
new SAMLSecurityContext(new SimplePrincipal(name), roles, claims);
context.setIssuer(org.apache.cxf.rt.security.saml.SAMLUtils.getIssuer(assertionWrapper));
context.setAssertionElement(
org.apache.cxf.rt.security.saml.SAMLUtils.getAssertionElement(assertionWrapper));
m.put(SecurityContext.class, context);
}
}