/** * @see org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler#handleStatusResponseType(org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2HandlerRequest, org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2HandlerResponse) */ @Override public void handleStatusResponseType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { HttpSession session = BaseSAML2Handler.getHttpSession(request); if (session != null) { List<String> roles = response.getRoles(); if (roles != null) { session.setAttribute(GeneralConstants.ROLES_ID, roles); } } }
List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) { principal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);
List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) { principal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);
final List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) principal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);
final List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) principal = (Principal) session.getAttribute(GeneralConstants.PRINCIPAL_ID);
List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) { principal = (Principal) session.getSession().getAttribute(GeneralConstants.PRINCIPAL_ID);
List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) { principal = (Principal) session.getSession().getAttribute(GeneralConstants.PRINCIPAL_ID);
List<String> roles = saml2HandlerResponse.getRoles(); if (principal == null) { principal = (Principal) session.getSession().getAttribute(GeneralConstants.PRINCIPAL_ID);