## Uses of Interface
com.holonplatform.auth.Authenticator

- Packages that use Authenticator
  Package | Description
  --- | ---
  com.holonplatform.auth |
  com.holonplatform.auth.jwt |
  com.holonplatform.spring.security |

- - ### Uses of Authenticator in com.holonplatform.auth

    Subinterfaces of Authenticator in com.holonplatform.auth
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Realm` A Realm represents a security abstraction providing operations for principals authentication (for example login a user relying on user accounts informations) and authorization (permission check against principal grants stored in this realm).

    Methods in com.holonplatform.auth that return Authenticator
    Modifier and Type | Method and Description
    --- | ---
    `static Authenticator<AccountCredentialsToken>` | Account.`authenticator(Account.AccountProvider accountProvider)` Build an `Authenticator` using `Account.AccountProvider` to load `Account` data and accepting `AccountCredentialsToken` as credentials.
    `static Authenticator<AccountCredentialsToken>` | Account.`authenticator(Account.AccountProvider accountProvider, CredentialsContainer.CredentialsMatcher credentialsMatcher)` Build an `Authenticator` using `Account.AccountProvider` to load `Account` data and accepting `AccountCredentialsToken` as credentials.
    `static <T extends AuthenticationToken> Authenticator<T>` | Authenticator.`create(Class<? extends T> tokenType, Function<T,Authentication> authenticationFunction)` Create an `Authenticator` bound to the given token type and which uses the provided callback `Function` to perform the authentication strategy.

    Methods in com.holonplatform.auth with parameters of type Authenticator
    Modifier and Type | Method and Description
    --- | ---
    `<T extends AuthenticationToken> void` | Realm.`addAuthenticator(Authenticator<T> authenticator)` Add a concrete `Authenticator` for a specific `AuthenticationToken` type to this Realm
    `default <T extends AuthenticationToken> Realm.Builder` | Realm.Builder.`authenticator(Authenticator<T> authenticator)` Deprecated. Use `Realm.Builder.withAuthenticator(Authenticator)`
    `<T extends AuthenticationToken> Realm.Builder` | Realm.Builder.`withAuthenticator(Authenticator<T> authenticator)` Register given `Authenticator` in Realm.

  - ### Uses of Authenticator in com.holonplatform.auth.jwt

    Subinterfaces of Authenticator in com.holonplatform.auth.jwt
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `JwtAuthenticator` An `Authenticator` able to authenticate `BearerAuthenticationToken` tokens, expecting a JWT token as bearer token and using a `JwtConfiguration` to perform authentication.

  - ### Uses of Authenticator in com.holonplatform.spring.security

    Methods in com.holonplatform.spring.security that return Authenticator
    Modifier and Type | Method and Description
    --- | ---
    `static Authenticator<AccountCredentialsToken>` | SpringSecurity.`accountCredentialsAuthenticator(org.springframework.security.authentication.AuthenticationManager authenticationManager)` Create an `Authenticator` for the default `AccountCredentialsToken`, using the Spring Security `AuthenticationManager` to perform the authentication operations.
    `static Authenticator<SpringSecurityAuthenticationToken>` | SpringSecurity.`authenticator(org.springframework.security.authentication.AuthenticationManager authenticationManager)` Create an `Authenticator` which supports `SpringSecurityAuthenticationToken` types and uses the Spring Security `AuthenticationManager` to perform the authentication operations.

    Methods in com.holonplatform.spring.security with parameters of type Authenticator
    Modifier and Type | Method and Description
    --- | ---
    `static <T extends AuthenticationToken,A extends org.springframework.security.core.Authentication> org.springframework.security.authentication.AuthenticationProvider` | SpringSecurity.`authenticationProvider(Authenticator<T> authenticator, Class<A> authenticationType, Function<A,T> converter)` Create a Spring Security `AuthenticationProvider` using an `Authenticator` as concrete authentication provider.

Copyright © 2019 The Holon Platform. All rights reserved.