public static interface Authentication.Builder
Authentication instances.| Modifier and Type | Method and Description |
|---|---|
Authentication |
build()
Create Authentication instance
|
default <T> Authentication.Builder |
parameter(ConfigProperty<T> property,
T value)
Deprecated.
|
default Authentication.Builder |
parameter(String name,
Object value)
Deprecated.
|
default Authentication.Builder |
permission(Permission permission)
Deprecated.
|
default Authentication.Builder |
permission(String permission)
Deprecated.
|
Authentication.Builder |
root(boolean root)
Set whether authentication is considered a
root principal, for which permission checking is
always skipped, assuming that any permission is granted. |
Authentication.Builder |
scheme(String scheme)
Set the authentication scheme with which this authentication was produced.
|
<T> Authentication.Builder |
withParameter(ConfigProperty<T> property,
T value)
Add an authentication parameter using a
ConfigProperty an ConfigProperty.getKey() as
parameter name |
Authentication.Builder |
withParameter(String name,
Object value)
Add an authentication parameter.
|
Authentication.Builder |
withPermission(Permission permission)
Add a permission granted to Authentication
|
Authentication.Builder |
withPermission(String permission)
Add a permission granted to Authentication using String representation.
|
Authentication.Builder scheme(String scheme)
scheme - Authentication scheme nameAuthentication.Builder root(boolean root)
root principal, for which permission checking is
always skipped, assuming that any permission is granted.root - true to set authentication as root principalAuthentication.Builder withParameter(String name, Object value)
name - Parameter name (not null)value - Parameter value@Deprecated default Authentication.Builder parameter(String name, Object value)
withParameter(String, Object)name - Parameter name (not null)value - Parameter value<T> Authentication.Builder withParameter(ConfigProperty<T> property, T value)
ConfigProperty an ConfigProperty.getKey() as
parameter nameT - Property typeproperty - ConfigProperty to obtain parameter name (not null)value - Parameter value@Deprecated default <T> Authentication.Builder parameter(ConfigProperty<T> property, T value)
withParameter(ConfigProperty, Object)ConfigProperty an ConfigProperty.getKey() as
parameter nameT - Property typeproperty - ConfigProperty to obtain parameter name (not null)value - Parameter valueAuthentication.Builder withPermission(Permission permission)
permission - Permission to add (not null)@Deprecated default Authentication.Builder permission(Permission permission)
withPermission(Permission)permission - Permission to add (not null)Authentication.Builder withPermission(String permission)
permission - Permission string to add (not null)@Deprecated default Authentication.Builder permission(String permission)
withPermission(String)permission - Permission string to add (not null)Authentication build()
Copyright © 2019 The Holon Platform. All rights reserved.