Class ValidationContext

java.lang.Object
org.opensaml.saml.common.assertion.ValidationContext

@NotThreadSafe
public class ValidationContext
extends Object
Context which holds state related to a single validation event.
  • Field Details

    • staticParameters

      private Map<String,​Object> staticParameters
      Static parameters used as input to the validation process.
    • dynamicParameters

      private Map<String,​Object> dynamicParameters
      Dynamic parameters used as input to, and output from, the validation process.
    • validationFailureMessage

      private String validationFailureMessage
      Error messaging describing what validation check an assertion failed.
  • Constructor Details

    • ValidationContext

      public ValidationContext()
      Constructor. Creates a validation context with no global environment.
    • ValidationContext

      public ValidationContext​(Map<String,​Object> newStaticParameters)
      Constructor.
      Parameters:
      newStaticParameters - static parameters for the validation evaluation
  • Method Details

    • getStaticParameters

      public Map<String,​Object> getStaticParameters()
      Gets the static parameters used as input to the validation process. The returned map is immutable.
      Returns:
      static parameters used as input to the validation process
    • getDynamicParameters

      public Map<String,​Object> getDynamicParameters()
      Gets the dynamic parameters used input to, and output from, the validation process. The returned map is mutable.
      Returns:
      dynamic parameters used input to, and output from, the validation process
    • getValidationFailureMessage

      public String getValidationFailureMessage()
      Gets the message describing why the validation process failed.
      Returns:
      message describing why the validation process failed
    • setValidationFailureMessage

      public void setValidationFailureMessage​(String message)
      Sets the message describing why the validation process failed.
      Parameters:
      message - message describing why the validation process failed