if (roleClassifier != null && !"".equals(roleClassifier)) {
RolePrefixSecurityContextImpl securityContext =
new RolePrefixSecurityContextImpl(subject, roleClassifier, roleClassifierType);
return securityContext.getUserRoles();
} else {
return new DefaultSecurityContext(principal, subject).getUserRoles();
}
}
List<String> roles =
SAMLUtils.parseRolesInAssertion(assertion, roleAttributeName);