Class DestinationValidator

java.lang.Object
org.keycloak.saml.validators.DestinationValidator

public class DestinationValidator extends Object
Check that Destination field in SAML request/response is either unset or matches the expected one.
Author:
hmlnarik
  • Method Details

    • forProtocolMap

      public static DestinationValidator forProtocolMap(String[] protocolMappings)
    • validate

      public boolean validate(String expectedDestination, String actualDestination)
    • validate

      public boolean validate(String expectedDestination, URI actualDestination)
    • validate

      public boolean validate(URI expectedDestination, String actualDestination)
    • validate

      public boolean validate(URI expectedDestination, URI actualDestination)