Interface Verifier

All Known Implementing Classes:
LocalVerifier, MapVerifier, SecretVerifier

public interface Verifier
Verifies the credentials provided by a client user sending a request.
Author:
Jerome Louvel
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Invalid credentials provided.
    static final int
    No credentials provided.
    static final int
    Stale credentials provided.
    static final int
    Unknown user.
    static final int
    Unsupported credentials.
    static final int
    Valid credentials provided.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    verify(Request request, Response response)
    Attempts to verify the credentials provided by the client user sending the request.
  • Field Details

    • RESULT_INVALID

      static final int RESULT_INVALID
      Invalid credentials provided.
      See Also:
    • RESULT_MISSING

      static final int RESULT_MISSING
      No credentials provided.
      See Also:
    • RESULT_STALE

      static final int RESULT_STALE
      Stale credentials provided.
      See Also:
    • RESULT_UNSUPPORTED

      static final int RESULT_UNSUPPORTED
      Unsupported credentials.
      See Also:
    • RESULT_UNKNOWN

      static final int RESULT_UNKNOWN
      Unknown user.
      See Also:
    • RESULT_VALID

      static final int RESULT_VALID
      Valid credentials provided.
      See Also:
  • Method Details

    • verify

      int verify(Request request, Response response)
      Attempts to verify the credentials provided by the client user sending the request.
      Parameters:
      request - The request sent.
      response - The response to update.
      Returns:
      Result of the verification based on the RESULT_* constants.