Interface Validatable<T>

  • Type Parameters:
    T - the generic type


    public interface Validatable<T>
    The Interface Validatable.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isValid​(T aCredentials)
      Validates the provided credentials against this credentials's bearer and secret.
    • Method Detail

      • isValid

        boolean isValid​(T aCredentials)
        Validates the provided credentials against this credentials's bearer and secret. If this credentials instance's bearer or secret are null, then false is returned.
        Parameters:
        aCredentials - The credentials to be tested if them fit with the this credentials instance.
        Returns:
        True if the credentials match with the this credentials instance and this credentials instance's bearer and secret are not null.