Interface Validatable<T>

Type Parameters:
T - the generic type

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

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

    • 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.