Class DefaultOAuth2TokenRevocationConfiguration
java.lang.Object
net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
net.shibboleth.idp.profile.config.AbstractProfileConfiguration
net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2TokenValidatingConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.DefaultOAuth2TokenRevocationConfiguration
- All Implemented Interfaces:
AuthenticationProfileConfiguration,ConditionalProfileConfiguration,OverriddenIssuerProfileConfiguration,ProfileConfiguration,OAuth2ClientAuthenticableClientProfileConfiguration,OAuth2ClientAuthenticableProfileConfiguration,OAuth2ProfileConfiguration,OAuth2TokenRevocationConfiguration,OAuth2TokenValidatingProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class DefaultOAuth2TokenRevocationConfiguration
extends AbstractOAuth2TokenValidatingConfiguration
implements OAuth2TokenRevocationConfiguration
Implementation of a profile configuration for OAuth2 Token Revocation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration
OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Function<ProfileRequestContext,Duration> Lookup function to supply revocation lifetime.private Function<ProfileRequestContext,String> Which revocation method should be used when revoking a token.Fields inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
DEFAULT_DISALLOWED_FEATURESFields inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenRevocationConfiguration
PROFILE_ID, PROTOCOL_URI -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.DefaultOAuth2TokenRevocationConfiguration(String profileId) Creates a new configuration instance. -
Method Summary
Modifier and TypeMethodDescriptiongetRevocationLifetime(ProfileRequestContext profileRequestContext) Get revocation lifetime.getRevocationMethod(ProfileRequestContext profileRequestContext) Get the revocation method used when revoking a token.voidsetRevocationLifetime(Duration lifetime) Set the lifetime of revocation.voidSet a lookup strategy for the revocation lifetime.voidSet which revocation method should be used when revoking a token.voidSet strategy for looking up which revocation method should be used when revoking a token.Methods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2TokenValidatingConfiguration
getIssuedClaimsValidator, getIssuer, setIssuedClaimsValidator, setIssuedClaimsValidatorLookupStrategy, setIssuer, setIssuerLookupStrategyMethods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
getAuthenticationFlows, getClaimsValidator, getClientCredential, getClientId, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, getTokenEndpointAuthMethod, getTokenEndpointAuthMethods, isForceAuthn, setAuthenticationFlows, setAuthenticationFlowsLookupStrategy, setClaimsValidator, setClaimsValidatorLookupStrategy, setClientCredential, setClientCredentialLookupStrategy, setClientId, setClientIdLookupStrategy, setDefaultAuthenticationMethods, setDefaultAuthenticationMethodsLookupStrategy, setForceAuthn, setForceAuthnPredicate, setPostAuthenticationFlows, setPostAuthenticationFlowsLookupStrategy, setProxyCount, setProxyCountLookupStrategy, setTokenEndpointAuthMethod, setTokenEndpointAuthMethodLookupStrategy, setTokenEndpointAuthMethods, setTokenEndpointAuthMethodsLookupStrategyMethods inherited from class net.shibboleth.idp.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getIdMethods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
getAuthenticationFlows, getDefaultAuthenticationMethods, getPostAuthenticationFlows, getProxyCount, isForceAuthn, isLocalMethods inherited from interface net.shibboleth.idp.profile.config.ConditionalProfileConfiguration
getActivationConditionMethods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2ClientAuthenticableProfileConfiguration
getClaimsValidator, getTokenEndpointAuthMethodsMethods inherited from interface net.shibboleth.oidc.profile.oauth2.config.OAuth2TokenValidatingProfileConfiguration
getIssuedClaimsValidatorMethods inherited from interface net.shibboleth.idp.profile.config.OverriddenIssuerProfileConfiguration
getIssuerMethods inherited from interface net.shibboleth.idp.profile.config.ProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration
-
Field Details
-
revocationMethodLookupStrategy
Which revocation method should be used when revoking a token. Supported values are CHAIN and TOKEN. The default is CHAIN. -
revocationLifetimeLookupStrategy
Lookup function to supply revocation lifetime.
-
-
Constructor Details
-
DefaultOAuth2TokenRevocationConfiguration
public DefaultOAuth2TokenRevocationConfiguration()Constructor. -
DefaultOAuth2TokenRevocationConfiguration
Creates a new configuration instance.- Parameters:
profileId- Unique profile identifier.
-
-
Method Details
-
setRevocationMethodLookupStrategy
public void setRevocationMethodLookupStrategy(@Nonnull Function<ProfileRequestContext, String> strategy) Set strategy for looking up which revocation method should be used when revoking a token.- Parameters:
strategy- What to set.- Since:
- 2.1.0
-
setRevocationMethod
public void setRevocationMethod(@Nonnull @NotEmpty OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod method) Set which revocation method should be used when revoking a token.- Parameters:
method- What to set.- Since:
- 2.1.0
-
getRevocationMethod
public OAuth2TokenRevocationConfiguration.OAuth2TokenRevocationMethod getRevocationMethod(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2TokenRevocationConfigurationGet the revocation method used when revoking a token.- Specified by:
getRevocationMethodin interfaceOAuth2TokenRevocationConfiguration- Parameters:
profileRequestContext- profile request context.- Returns:
- The revocation method used when revoking a token.
-
setRevocationLifetimeLookupStrategy
public void setRevocationLifetimeLookupStrategy(@Nullable Function<ProfileRequestContext, Duration> strategy) Set a lookup strategy for the revocation lifetime.- Parameters:
strategy- What to set.- Since:
- 2.1.0
-
getRevocationLifetime
@Positive @Nonnull public Duration getRevocationLifetime(@Nullable ProfileRequestContext profileRequestContext) Description copied from interface:OAuth2TokenRevocationConfigurationGet revocation lifetime.Defaults to 6 hours.
- Specified by:
getRevocationLifetimein interfaceOAuth2TokenRevocationConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- revocation lifetime
-
setRevocationLifetime
Set the lifetime of revocation.- Parameters:
lifetime- What to set.- Since:
- 2.1.0
-