org.keycloak.saml.validators

## 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 Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DestinationValidator` | `forProtocolMap(String[] protocolMappings)`
    `boolean` | `validate(String expectedDestination, String actualDestination)`
    `boolean` | `validate(String expectedDestination, URI actualDestination)`
    `boolean` | `validate(URI expectedDestination, String actualDestination)`
    `boolean` | `validate(URI expectedDestination, URI actualDestination)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### 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)

Copyright © 2020 JBoss by Red Hat. All rights reserved.