Interface ConditionsProvider


@SupportedAll public interface ConditionsProvider
Implementations of this interface will be consulted to obtain the Conditions object included in generated SAML2 assertions. If the published STS instance does not encapsulate a custom ConditionsProvider, then the DefaultConditionsProvider class will be referenced to obtain the Conditions statement.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(SAML2Config saml2Config, Date issueInstant, SAML2SubjectConfirmation saml2SubjectConfirmation)
    Called to obtain the Conditions instance to be included in the generated SAML2 assertion
  • Method Details

    • get

      Conditions get(SAML2Config saml2Config, Date issueInstant, SAML2SubjectConfirmation saml2SubjectConfirmation) throws TokenCreationException
      Called to obtain the Conditions instance to be included in the generated SAML2 assertion
      Parameters:
      saml2Config - STS-instance-specific SAML2 configurations
      issueInstant - The instant at which the enclosing assertion was issued
      saml2SubjectConfirmation - The subject confirmation specification
      Returns:
      The generated Conditions instance.
      Throws:
      TokenCreationException - If there was an error while creating the Conditions.