com.holonplatform.auth

## Interface AuthenticationToken.AuthenticationTokenResolver<R extends Message>

- Type Parameters:
    `R` - Concrete authentication request message
  Enclosing interface:
    AuthenticationToken

      public static interface AuthenticationToken.AuthenticationTokenResolver<R extends Message>

  Resolver to obtain an `AuthenticationToken` from an authentication request using a generic `Message`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Optional<AuthenticationToken>` | `getAuthenticationToken(R request)` Parse given `request` message and try to obtain an `AuthenticationToken` if request is eligible for this resolver authentication mechanism.
    `Class<? extends Message>` | `getMessageType()` Get supported message type
    `Optional<String>` | `getScheme()` Optional authentication scheme

- - ### Method Detail

    - #### getMessageType

          Class<? extends Message> getMessageType()

      Get supported message type
      Returns:
        Message type

    - #### getScheme

          Optional<String> getScheme()

      Optional authentication scheme
      Returns:
        Authentication scheme name, empty if not available

    - #### getAuthenticationToken

          Optional<AuthenticationToken> getAuthenticationToken(R request)
                                                        throws AuthenticationException

      Parse given `request` message and try to obtain an `AuthenticationToken` if request is eligible for this resolver authentication mechanism.
      Parameters:
        `request` - Authentication request
      Returns:
        AuthenticationToken, or an empty Optional if request is not eligible for this resolver authentication mechanism
      Throws:
        `AuthenticationException` - Id resolver recognized given request but it is somehow malformed or incomplete

Copyright © 2017 The Holon Platform. All rights reserved.