List<String> roles = AssertionUtil.getRoles(assertion, null); Group roleGroup = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); for(String role: roles)
log.trace("Inbound::Rolekeys to extract roles from the assertion:" + roleKeys); List<String> roles = AssertionUtil.getRoles(assertionType, roleKeys); if(roles.size() > 0 )
roles = AssertionUtil.getRoles(assertion, null);
roles = AssertionUtil.getRoles(assertion, null);
List<String> roles = AssertionUtil.getRoles(assertion, null); Group roleGroup = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); for (String role : roles) {
List<String> roles = AssertionUtil.getRoles(assertion, null); Group roleGroup = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); for (String role : roles) {
roleKeys.addAll(StringUtil.tokenize(roleKey)); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); if (roles.size() > 0) { SimpleGroup group = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); List<String> roles = AssertionUtil.getRoles(assertion, null); for (String role : roles) { callerPrincipal.addMember(new SimplePrincipal(role));
roleKeys.addAll(StringUtil.tokenize(roleKey)); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); if (roles.size() > 0) { SimpleGroup group = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); List<String> roles = AssertionUtil.getRoles(assertion, null); for (String role : roles) { callerPrincipal.addMember(new SimplePrincipal(role));
roleKeys.addAll(StringUtil.tokenize(roleKey)); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); if (roles.size() > 0) { SimpleGroup group = new SimpleGroup(SecurityConstants.ROLES_IDENTIFIER); List<String> roles = AssertionUtil.getRoles(assertion, null); for (String role : roles) { callerPrincipal.addMember(new SimplePrincipal(role));
roles = AssertionUtil.getRoles(assertion, null);
roles = AssertionUtil.getRoles(assertion, null);
@Override protected Group[] getRoleSets() throws LoginException { if (this.assertion == null) { try { this.assertion = SAMLUtil.fromElement(this.credential.getAssertionAsElement()); } catch (Exception e) { throw logger.authFailedToParseSAMLAssertion(e); } } if (logger.isTraceEnabled()) { try { logger.trace("Assertion from where roles will be sought = " + AssertionUtil.asString(assertion)); } catch (ProcessingException ignore) { } } List<String> roleKeys = new ArrayList<String>(); if (StringUtil.isNotNull(roleKey)) { roleKeys.addAll(StringUtil.tokenize(roleKey)); } String groupName = SecurityConstants.ROLES_IDENTIFIER; Group rolesGroup = new PicketLinkGroup(groupName); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); for (String role : roles) { rolesGroup.addMember(new SimplePrincipal(role)); } return new Group[]{rolesGroup}; }
@Override protected Group[] getRoleSets() throws LoginException { if (this.assertion == null) { try { this.assertion = SAMLUtil.fromElement(this.credential.getAssertionAsElement()); } catch (Exception e) { throw logger.authFailedToParseSAMLAssertion(e); } } if (logger.isTraceEnabled()) { try { logger.trace("Assertion from where roles will be sought = " + AssertionUtil.asString(assertion)); } catch (ProcessingException ignore) { } } List<String> roleKeys = new ArrayList<String>(); if (StringUtil.isNotNull(roleKey)) { roleKeys.addAll(StringUtil.tokenize(roleKey)); } String groupName = SecurityConstants.ROLES_IDENTIFIER; Group rolesGroup = new PicketLinkGroup(groupName); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); for (String role : roles) { rolesGroup.addMember(new SimplePrincipal(role)); } return new Group[]{rolesGroup}; }
@Override protected Group[] getRoleSets() throws LoginException { if (this.assertion == null) { try { this.assertion = SAMLUtil.fromElement(this.credential.getAssertionAsElement()); } catch (Exception e) { throw logger.authFailedToParseSAMLAssertion(e); } } if (logger.isTraceEnabled()) { try { logger.trace("Assertion from where roles will be sought = " + AssertionUtil.asString(assertion)); } catch (ProcessingException ignore) { } } List<String> roleKeys = new ArrayList<String>(); if (StringUtil.isNotNull(roleKey)) { roleKeys.addAll(StringUtil.tokenize(roleKey)); } String groupName = SecurityConstants.ROLES_IDENTIFIER; Group rolesGroup = new PicketLinkGroup(groupName); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); for (String role : roles) { rolesGroup.addMember(new SimplePrincipal(role)); } return new Group[]{rolesGroup}; }
@Override protected Group[] getRoleSets() throws LoginException { if (this.assertion == null) { try { this.assertion = SAMLUtil.fromElement(this.credential.getAssertionAsElement()); } catch (Exception e) { throw logger.authFailedToParseSAMLAssertion(e); } } if (logger.isTraceEnabled()) { try { logger.trace("Assertion from where roles will be sought = " + AssertionUtil.asString(assertion)); } catch (ProcessingException ignore) { } } List<String> roleKeys = new ArrayList<String>(); if (StringUtil.isNotNull(roleKey)) { roleKeys.addAll(StringUtil.tokenize(roleKey)); } String groupName = SecurityConstants.ROLES_IDENTIFIER; Group rolesGroup = new PicketLinkGroup(groupName); List<String> roles = AssertionUtil.getRoles(assertion, roleKeys); for (String role : roles) { rolesGroup.addMember(new SimplePrincipal(role)); } return new Group[]{rolesGroup}; }
List<String> roles = AssertionUtil.getRoles(assertionType, roleKeys); if (roles.size() > 0) { logger.trace("Roles in the assertion: " + roles);
List<String> roles = AssertionUtil.getRoles(assertionType, roleKeys); if (roles.size() > 0) { logger.trace("Roles in the assertion: " + roles);
roles = AssertionUtil.getRoles(assertion, null);
roles = AssertionUtil.getRoles(assertion, null);