This interface is used by AuthenticationHandler
which is
deprecated. This interface will be removed in a future release.
@Deprecated public interface AuthenticationResultSource extends AuthenticationResult
AuthenticationResult
with "builder style" methods that allow
a new authentication result to be created.Modifier and Type | Method and Description |
---|---|
AuthenticationResultSource |
withProperties(Map<String,String> properties)
Deprecated.
Copies this authentication result with additional property values.
|
AuthenticationResultSource |
withProperty(String key,
String value)
Deprecated.
Copies this authentication result with an additional property value.
|
AuthenticationResultSource |
withRoles(String... roles)
Deprecated.
Copies this authentication result with additional roles.
|
getAdditionalProperties, getAdditionalRoles
AuthenticationResultSource withRoles(String... roles)
This authentication result is left unmodified.
roles
- additional roles to be added to the sessionAuthenticationResultSource withProperty(String key, String value)
If the specified key already had a value then it will be replaced.
This authentication result is left unmodified.
key
- the property keyvalue
- the property valueAuthenticationResultSource withProperties(Map<String,String> properties)
New values will be added to any current values and if any specified key already had a value then it will be replaced.
This authentication result is left unmodified.
properties
- a map of properties used to add to or replace any
current propertiesCopyright © 2020 Push Technology Ltd. All Rights Reserved.