AuthenticationProvider, OutboundSecurityProvider, SecurityProviderpublic class JwtProvider extends SynchronousProvider implements AuthenticationProvider, OutboundSecurityProvider
Principal
for a SubjectType.USER or SubjectType.SERVICE.
This provider can also propagate identity using JWT token, either by creating a new
JWT or by propagating the existing token "as is".
Verification and signatures of tokens is done through JWK standard - two separate
JWK files are expected (one for verification, one for signatures).| Modifier and Type | Class | Description |
|---|---|---|
static class |
JwtProvider.Builder |
Fluent API builder for
JwtProvider. |
static class |
JwtProvider.JwtOutboundTarget |
A custom object to configure specific handling of outbound calls.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
EP_PROPERTY_OUTBOUND_USER |
Configure this for outbound requests to override user to use.
|
| Modifier and Type | Method | Description |
|---|---|---|
static JwtProvider.Builder |
builder() |
A builder for this provider.
|
static JwtProvider |
fromConfig(Config config) |
Create provider instance from configuration.
|
boolean |
isOutboundSupported(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundConfig) |
Check if the path to be executed is supported by this security provider.
|
protected AuthenticationResponse |
syncAuthenticate(ProviderRequest providerRequest) |
Synchronous authentication.
|
protected OutboundSecurityResponse |
syncOutbound(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundEndpointConfig) |
Synchronous outbound security.
|
authenticateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoutboundSecuritysupportedAnnotations, supportedAttributes, supportedConfigKeys, supportedCustomObjectsauthenticate, authorize, outboundSecurity, syncAuthorizepublic static final java.lang.String EP_PROPERTY_OUTBOUND_USER
public static JwtProvider.Builder builder()
public static JwtProvider fromConfig(Config config)
config - configuration of this providerprotected AuthenticationResponse syncAuthenticate(ProviderRequest providerRequest)
SynchronousProvidersyncAuthenticate in class SynchronousProviderproviderRequest - context with environment, subject(s) etc.AuthenticationProvider.authenticate(ProviderRequest)public boolean isOutboundSupported(ProviderRequest providerRequest, SecurityEnvironment outboundEnv, EndpointConfig outboundConfig)
OutboundSecurityProviderisOutboundSupported in interface OutboundSecurityProviderproviderRequest - context with environment, subject(s) etc. that was receivedoutboundEnv - environment for outbound calloutboundConfig - outbound endpoint configurationprotected OutboundSecurityResponse syncOutbound(ProviderRequest providerRequest, SecurityEnvironment outboundEnv, EndpointConfig outboundEndpointConfig)
SynchronousProvidersyncOutbound in class SynchronousProviderproviderRequest - context with environment, subject(s) etc.outboundEnv - environment of this outbound calloutboundEndpointConfig - endpoint config for outbound callOutboundSecurityProvider.outboundSecurity(ProviderRequest, SecurityEnvironment, EndpointConfig),
OutboundSecurityProvider.isOutboundSupported(ProviderRequest, SecurityEnvironment, EndpointConfig)Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.