Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 1.80 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. diff --git a/opensso/products/federation/openfm/source/com/sun/identity/workflow/ValidateSAML2.java b/opensso/products/federation/openfm/source/com/sun/identity/workflow/ValidateSAML2.java
  2. index abfae02..7f140d8 100644
  3. --- a/opensso/products/federation/openfm/source/com/sun/identity/workflow/ValidateSAML2.java
  4. +++ b/opensso/products/federation/openfm/source/com/sun/identity/workflow/ValidateSAML2.java
  5. @@ -52,6 +52,8 @@ import com.sun.identity.saml2.meta.SAML2MetaManager;
  6.  import com.sun.identity.shared.locale.Locale;
  7.  
  8.  public class ValidateSAML2 {
  9. +    
  10. +    private static Debug debug = Debug.getInstance("workflow");
  11.      private static final String LOGIN_URL = "/UI/Login";
  12.      private static final String LOGOUT_URL = "/UI/Logout";
  13.      
  14. @@ -109,6 +111,7 @@ public class ValidateSAML2 {
  15.              }
  16.              validateURL(idpBaseURL);
  17.          } catch (SAML2MetaException ex) {
  18. +            debug.error("ValidateSAML2: Error while validating IdP", ex);
  19.              Object[] param = {idpEntityId};
  20.              throw new WorkflowException("cannot.locate.idp", param);
  21.          }
  22. @@ -168,6 +171,7 @@ public class ValidateSAML2 {
  23.              }
  24.              
  25.          } catch (SAML2MetaException ex) {
  26. +            debug.error("ValidateSAML2: Error while validating SP", ex);
  27.              Object[] param = {spEntityId};
  28.              throw new WorkflowException("cannot.locate.sp", param);
  29.          }
  30. @@ -183,6 +187,7 @@ public class ValidateSAML2 {
  31.              Object[] params = {strUrl};
  32.              throw new WorkflowException("malformedurl", params);
  33.          } catch (IOException ex) {
  34. +            debug.error("ValidateSAML2: IO Error while validating URL", ex);
  35.              Object[] params = {strUrl};
  36.              throw new WorkflowException("unable.to.reach.url", params);
  37.          }