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

- Packages that use Realm
  Package | Description
  --- | ---
  com.holonplatform.auth |
  com.holonplatform.auth.internal |
  com.holonplatform.spring.security |

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

    Methods in com.holonplatform.auth that return Realm
    Modifier and Type | Method and Description
    --- | ---
    `Realm` | Realm.Builder.`build()` Build `Realm` instance
    `static Realm` | Realm.`require()` Requires the current `Realm`.

    Methods in com.holonplatform.auth that return types with arguments of type Realm
    Modifier and Type | Method and Description
    --- | ---
    `static Optional<Realm>` | Realm.`getCurrent()` Convenience method to obtain the current `Realm` made available as `Context` resource, using default `ClassLoader`.

    Methods in com.holonplatform.auth with parameters of type Realm
    Modifier and Type | Method and Description
    --- | ---
    `static AuthContext` | AuthContext.`create(Realm realm)` Create a default `AuthContext` using given `realm`.
    `static AuthContext` | AuthContext.`create(Realm realm, AuthContext.AuthenticationHolder authenticationHolder)` Create a default `AuthContext` using given `realm` and a custom `AuthContext.AuthenticationHolder` to handle the current `Authentication` reference.

  - ### Uses of Realm in com.holonplatform.auth.internal

    Classes in com.holonplatform.auth.internal that implement Realm
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DefaultRealm` Default `Realm` implementation

    Methods in com.holonplatform.auth.internal that return Realm
    Modifier and Type | Method and Description
    --- | ---
    `Realm` | DefaultRealm.RealmBuilder.`build()`

    Constructors in com.holonplatform.auth.internal with parameters of type Realm
    Constructor and Description
    `DefaultAuthContext(Realm realm)` Constructor using the default `AuthenticationHolder`.
    `DefaultAuthContext(Realm realm, AuthContext.AuthenticationHolder authenticationHolder)` Constructor.

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

    Methods in com.holonplatform.spring.security with parameters of type Realm
    Modifier and Type | Method and Description
    --- | ---
    `static AuthContext` | SpringSecurity.`authContext(Realm realm)` Create an `AuthContext` which uses the Spring Security `SecurityContext` as authentication holder.

Copyright © 2019 The Holon Platform. All rights reserved.