authnRequest.setConditions((ConditionsType) (new SAMLConditionsParser()).parse(xmlEventReader)); } else if (JBossSAMLConstants.REQUESTED_AUTHN_CONTEXT.get().equals(elementName)) { authnRequest.setRequestedAuthnContext(getRequestedAuthnContextType(xmlEventReader)); } else if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { continue;
private void createRequestedAuthnContext(final AuthnRequestType authn) { String authnContextClasses = (String) handlerConfig.getParameter(GeneralConstants.AUTHN_CONTEXT_CLASSES); if (isNotNull(authnContextClasses)) { RequestedAuthnContextType requestAuthnContext = new RequestedAuthnContextType(); for (String classFqn : authnContextClasses.split(",")) { SAMLAuthenticationContextClass standardClass = SAMLAuthenticationContextClass.forAlias(classFqn); if (standardClass != null) { classFqn = standardClass.getFqn(); } requestAuthnContext.addAuthnContextClassRef(classFqn); } if (!requestAuthnContext.getAuthnContextClassRef().isEmpty()) { String comparison = (String) handlerConfig.getParameter(GeneralConstants.REQUESTED_AUTHN_CONTEXT_COMPARISON); if (isNotNull(comparison)) { requestAuthnContext.setComparison(AuthnContextComparisonType.fromValue(comparison)); } authn.setRequestedAuthnContext(requestAuthnContext); } else { logger.debug("RequestedAuthnContext not set for AuthnRequest. No class was provided."); } } }
private void createRequestAuthnContext(final AuthnRequestType authn) { String authnContextClasses = (String) handlerConfig.getParameter(GeneralConstants.AUTHN_CONTEXT_CLASSES); if (StringUtil.isNotNull(authnContextClasses)) { RequestedAuthnContextType requestAuthnContext = new RequestedAuthnContextType(); for (String contextClass: authnContextClasses.split(",")) { SAMLAuthenticationContextClass standardClass = SAMLAuthenticationContextClass.forAlias(contextClass); if (standardClass != null) { contextClass = standardClass.getFqn(); } requestAuthnContext.addAuthnContextClassRef(contextClass); } if (!requestAuthnContext.getAuthnContextClassRef().isEmpty()) { authn.setRequestedAuthnContext(requestAuthnContext); String comparison = (String) handlerConfig.getParameter(GeneralConstants.REQUESTED_AUTHN_CONTEXT_COMPARISON); if (StringUtil.isNotNull(comparison)) { requestAuthnContext.setComparison(AuthnContextComparisonType.fromValue(comparison)); } } else { logger.debug("RequestedAuthnContext not set for AuthnRequest. No context class was provided."); } } }
authnRequest.setConditions((ConditionsType) (new SAMLConditionsParser()).parse(xmlEventReader)); } else if (JBossSAMLConstants.REQUESTED_AUTHN_CONTEXT.get().equals(elementName)) { authnRequest.setRequestedAuthnContext(getRequestedAuthnContextType(xmlEventReader)); } else if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { continue;
authnRequest.setConditions((ConditionsType) (new SAMLConditionsParser()).parse(xmlEventReader)); } else if (JBossSAMLConstants.REQUESTED_AUTHN_CONTEXT.get().equals(elementName)) { authnRequest.setRequestedAuthnContext(getRequestedAuthnContextType(xmlEventReader)); } else if (JBossSAMLConstants.ISSUER.get().equals(elementName)) { continue;
private void createRequestedAuthnContext(final AuthnRequestType authn) { String authnContextClasses = (String) handlerConfig.getParameter(GeneralConstants.AUTHN_CONTEXT_CLASSES); if (isNotNull(authnContextClasses)) { RequestedAuthnContextType requestAuthnContext = new RequestedAuthnContextType(); for (String classFqn : authnContextClasses.split(",")) { SAMLAuthenticationContextClass standardClass = SAMLAuthenticationContextClass.forAlias(classFqn); if (standardClass != null) { classFqn = standardClass.getFqn(); } requestAuthnContext.addAuthnContextClassRef(classFqn); } if (!requestAuthnContext.getAuthnContextClassRef().isEmpty()) { String comparison = (String) handlerConfig.getParameter(GeneralConstants.REQUESTED_AUTHN_CONTEXT_COMPARISON); if (isNotNull(comparison)) { requestAuthnContext.setComparison(AuthnContextComparisonType.fromValue(comparison)); } authn.setRequestedAuthnContext(requestAuthnContext); } else { logger.debug("RequestedAuthnContext not set for AuthnRequest. No class was provided."); } } }
authnRequest.setRequestedAuthnContext(getRequestedAuthnContextType(xmlEventReader));
authnRequest.setRequestedAuthnContext(getRequestedAuthnContextType(xmlEventReader));