public static boolean checkForForcedAuth(String xmlCompositeAdvice){
  boolean returnForcedAuth=false;
  try {
    String decodedAdviceXML=URLDecoder.decode(xmlCompositeAdvice);
    Map adviceMap=PolicyUtils.parseAdvicesXML(decodedAdviceXML);
    if (utilDebug.messageEnabled()) {
      utilDebug.message("AuthUtils.checkForForcedAuth : decoded XML " + "= " + decodedAdviceXML);
      utilDebug.message("AuthUtils.checkForForcedAuth : result Map = " + adviceMap);
    }
    if (adviceMap != null) {
      if (adviceMap.containsKey(AuthSchemeCondition.FORCE_AUTH_ADVICE)) {
        returnForcedAuth=true;
      }
    }
  }
 catch (  com.sun.identity.policy.PolicyException polExp) {
    utilDebug.error("AuthUtils.checkForForcedAuth : Error in " + "Policy  XML parsing ",polExp);
  }
  if (utilDebug.messageEnabled()) {
    utilDebug.message("AuthUtils.checkForForcedAuth: returnForcedAuth" + "= " + returnForcedAuth);
  }
  return returnForcedAuth;
}

public static boolean checkForForcedAuth ( String xmlCompositeAdvice ) { boolean returnForcedAuth = false ; try { String decodedAdviceXML = URLDecoder . decode ( xmlCompositeAdvice ) ; Map adviceMap = PolicyUtils . parseAdvicesXML ( decodedAdviceXML ) ; if ( utilDebug . messageEnabled ( ) ) { utilDebug . message ( "AuthUtils.checkForForcedAuth : decoded XML " + "= " + decodedAdviceXML ) ; utilDebug . message ( "AuthUtils.checkForForcedAuth : result Map = " + adviceMap ) ; } if ( adviceMap != null ) { if ( adviceMap . containsKey ( AuthSchemeCondition . FORCE_AUTH_ADVICE ) ) { returnForcedAuth = true ; } } } catch ( com . sun . identity . policy . PolicyException polExp ) { utilDebug . error ( "AuthUtils.checkForForcedAuth : Error in " + "Policy  XML parsing " , polExp ) ; } if ( utilDebug . messageEnabled ( ) ) { utilDebug . message ( "AuthUtils.checkForForcedAuth: returnForcedAuth" + "= " + returnForcedAuth ) ; } return returnForcedAuth ; }
returns true if the composite advice has the forceauth element
