public class JwtAuthProvider extends SynchronousProvider implements AuthenticationProvider, OutboundSecurityProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
JwtAuthProvider.Builder
Fluent API builder for
JwtAuthProvider. |
static class |
JwtAuthProvider.JwtOutboundTarget
A custom object to configure specific handling of outbound calls.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_EXPECTED_ISSUER
Configuration key for expected issuer of incoming tokens.
|
static String |
EP_PROPERTY_OUTBOUND_USER
Configure this for outbound requests to override user to use.
|
| Modifier and Type | Method and Description |
|---|---|
static JwtAuthProvider.Builder |
builder()
A builder for this provider.
|
static JwtAuthProvider |
create(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.
|
Collection<Class<? extends Annotation>> |
supportedAnnotations()
Provide extension annotations supported by this provider (e.g.
|
protected AuthenticationResponse |
syncAuthenticate(ProviderRequest providerRequest)
Synchronous authentication.
|
OutboundSecurityResponse |
syncOutbound(ProviderRequest providerRequest,
SecurityEnvironment outboundEnv,
EndpointConfig outboundEndpointConfig)
Synchronous outbound security.
|
authenticate, authorize, outboundSecurity, syncAuthorizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticateoutboundSecuritysupportedAttributes, supportedConfigKeys, supportedCustomObjectspublic static final String EP_PROPERTY_OUTBOUND_USER
public static final String CONFIG_EXPECTED_ISSUER
public static JwtAuthProvider.Builder builder()
public static JwtAuthProvider create(Config config)
config - configuration of this providerpublic Collection<Class<? extends Annotation>> supportedAnnotations()
SecurityProviderjavax.annotation.security.RolesAllowed).
Annotations will be collected according to framework in use. For JAX-RS, annotations from application class, resource
class and resource methods will be collected.supportedAnnotations in interface SecurityProviderEndpointConfig.annotations(EndpointConfig.AnnotationScope...),
EndpointConfig.combineAnnotations(Class, EndpointConfig.AnnotationScope...)protected 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 configurationpublic 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.