io.vertx.ext.auth.authentication

## Interface Credentials

- All Known Implementing Classes:
    HtdigestCredentials, Oauth2Credentials, TokenCredentials, UsernamePasswordCredentials, WebAuthnCredentials

      public interface Credentials

  Abstract representation of a Credentials object. All implementations of this interface will define the required types and parameters for the specific implementation.
  Author:
    Paulo Lopes

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default <V> void` | `checkValid(V arg)` Implementors should override this method to perform validation.
    `JsonObject` | `toJson()` Simple interop to downcast back to JSON for backwards compatibility.

- - ### Method Detail

    - #### checkValid

          default <V> void checkValid(V arg)
                               throws CredentialValidationException

      Implementors should override this method to perform validation. An argument is allowed to allow custom validation, for example, when given a configuration property, a specific property may be allowed to be null.
      Type Parameters:
        `V` - the generic type of the argument
      Parameters:
        `arg` - optional argument or null.
      Throws:
        `CredentialValidationException` - when the validation fails

    - #### toJson

          JsonObject toJson()

      Simple interop to downcast back to JSON for backwards compatibility.
      Returns:
        JSON representation of this credential.

Copyright © 2020 Eclipse. All rights reserved.