@FunctionalInterface public interface SubjectMappingProvider extends SecurityProvider
user subject or a service subject.| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<AuthenticationResponse> |
map(ProviderRequest providerRequest,
AuthenticationResponse previousResponse)
Map grants from authenticated request (e.g.
|
supportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjectsjava.util.concurrent.CompletionStage<AuthenticationResponse> map(ProviderRequest providerRequest, AuthenticationResponse previousResponse)
ProviderRequest.getSubject() or
ProviderRequest.getService() returns a non-empty value) to a new authentication response.
The provider can change/add/remove grants (such as groups, scopes, permissions) or change the subject to a different
one.
This method is only invoked after a successful authentication.providerRequest - request to get user and service subjects frompreviousResponse - response from previous authentication or subject mapping providerCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.