Class AbstractOAuth2FlowAwareProfileConfiguration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.profile.config.AbstractProfileConfiguration
net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2InterceptorAwareProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2FlowAwareProfileConfiguration
- All Implemented Interfaces:
AuthenticationProfileConfiguration,InterceptorAwareProfileConfiguration,OIDCFlowAwareProfileConfiguration,OIDCProfileConfiguration,OAuth2ClientAuthenticableClientProfileConfiguration,OAuth2ClientAuthenticableProfileConfiguration,OAuth2DPoPProofValidatingProfileConfiguration,OAuth2FlowAwareProfileConfiguration,OAuth2InterceptorAwareProfileConfiguration,OAuth2ProfileConfiguration,ConditionalProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
- Direct Known Subclasses:
AbstractOIDCSSOConfiguration,DefaultOIDCDynamicRegistrationConfiguration
public abstract class AbstractOAuth2FlowAwareProfileConfiguration
extends AbstractOAuth2ClientAuthenticableProfileConfiguration
implements OIDCFlowAwareProfileConfiguration, OAuth2FlowAwareProfileConfiguration
Base class for OIDC protocol configuration, containing configuration bits shared by all flow aware OIDC protocol
configurations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Predicate used to indicate whether authorization code flow is supported by this profile.private Predicate<ProfileRequestContext>Predicate used to indicate whether hybrid flow is supported by this profile.private Predicate<ProfileRequestContext>Predicate used to indicate whether implicit flow is supported by this profile.private Predicate<ProfileRequestContext>Predicate used to indicate whether refresh tokens are supported by this profile.Fields inherited from interface net.shibboleth.profile.config.ProfileConfiguration
DEFAULT_DISALLOWED_FEATURES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAuthorizationCodeFlowEnabled(ProfileRequestContext profileRequestContext) Get whether authorization code flow is supported by this profile.booleanisHybridFlowEnabled(ProfileRequestContext profileRequestContext) Get whether the implicit flow is supported by this profile.booleanisImplicitFlowEnabled(ProfileRequestContext profileRequestContext) Get whether hybrid flow is supported by this profile.booleanisRefreshTokensEnabled(ProfileRequestContext profileRequestContext) Get whether refresh tokens are supported by this profile.voidsetAuthorizationCodeFlowEnabled(boolean flag) Set whether authorization code flow is supported by this profile.voidSet condition used to indicate whether authorization code flow is supported by this profile.voidsetHybridFlowEnabled(boolean flag) Set whether implicit flow is supported by this profile.voidSet condition used to indicate whether implicit flow is supported by this profile.voidsetImplicitFlowEnabled(boolean flag) Set whether hybrid flow is supported by this profile.voidSet condition used to indicate whether hybrid flow is supported by this profile.voidsetRefreshTokensEnabled(boolean flag) Set whether refresh tokens are supported by this profile.voidSet condition used to indicate whether refresh tokens are supported by this profile.Methods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2ClientAuthenticableProfileConfiguration
getAuthenticationFlows, getClaimsValidator, getClientCredential, getClientId, getDefaultAuthenticationMethods, getDpopProofClaimsValidator, getDpopProofNonceGenerator, getDpopProofSignatureValidationConfiguration, getPostAuthenticationFlows, getProxyCount, getTokenEndpointAuthMethod, getTokenEndpointAuthMethods, getUnregisteredClientPolicy, isForceAuthn, isRequireDpopProof, setAuthenticationFlows, setAuthenticationFlowsLookupStrategy, setClaimsValidator, setClaimsValidatorLookupStrategy, setClientCredential, setClientCredentialLookupStrategy, setClientId, setClientIdLookupStrategy, setDefaultAuthenticationMethods, setDefaultAuthenticationMethodsLookupStrategy, setDpopProofClaimsValidator, setDpopProofClaimsValidatorLookupStrategy, setDpopProofNonceGenerator, setDpopProofNonceGeneratorLookupStrategy, setDpopProofSignatureValidationConfiguration, setDpopProofSignatureValidationConfigurationLookupStrategy, setForceAuthn, setForceAuthnPredicate, setPostAuthenticationFlows, setPostAuthenticationFlowsLookupStrategy, setProxyCount, setProxyCountLookupStrategy, setRequireDpopProof, setRequireDpopProofPredicate, setTokenEndpointAuthMethod, setTokenEndpointAuthMethodLookupStrategy, setTokenEndpointAuthMethods, setTokenEndpointAuthMethodsLookupStrategy, setUnregisteredClientPolicy, setUnregisteredClientPolicyLookupStrategyMethods inherited from class net.shibboleth.oidc.profile.oauth2.config.impl.AbstractOAuth2InterceptorAwareProfileConfiguration
getMessageHandler, setMessageHandler, setMessageHandlerLookupStrategyMethods inherited from class net.shibboleth.idp.profile.config.AbstractInterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategyMethods inherited from class net.shibboleth.profile.config.AbstractConditionalProfileConfiguration
getActivationCondition, setActivationConditionMethods inherited from class net.shibboleth.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategyMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, 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
isLocalMethods inherited from interface net.shibboleth.profile.config.ConditionalProfileConfiguration
getActivationConditionMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getIdMethods inherited from interface net.shibboleth.idp.profile.config.InterceptorAwareProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlowsMethods inherited from interface net.shibboleth.profile.config.ProfileConfiguration
getDisallowedFeatures, getSecurityConfiguration, isFeatureDisallowed
-
Field Details
-
authorizationCodeFlowPredicate
Predicate used to indicate whether authorization code flow is supported by this profile. Default true. -
implicitFlowPredicate
Predicate used to indicate whether implicit flow is supported by this profile. Default true. -
hybridFlowPredicate
Predicate used to indicate whether hybrid flow is supported by this profile. Default true. -
refreshTokensPredicate
Predicate used to indicate whether refresh tokens are supported by this profile. Default true.
-
-
Constructor Details
-
AbstractOAuth2FlowAwareProfileConfiguration
Constructor.- Parameters:
profileId- Unique profile identifier.
-
-
Method Details
-
isAuthorizationCodeFlowEnabled
public boolean isAuthorizationCodeFlowEnabled(@Nullable ProfileRequestContext profileRequestContext) Get whether authorization code flow is supported by this profile.- Specified by:
isAuthorizationCodeFlowEnabledin interfaceOAuth2FlowAwareProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether authorization code flow is supported by this profile
-
setAuthorizationCodeFlowEnabled
public void setAuthorizationCodeFlowEnabled(boolean flag) Set whether authorization code flow is supported by this profile.- Parameters:
flag- flag to set
-
setAuthorizationCodeFlowEnabledPredicate
public void setAuthorizationCodeFlowEnabledPredicate(@Nonnull Predicate<ProfileRequestContext> condition) Set condition used to indicate whether authorization code flow is supported by this profile.- Parameters:
condition- condition to set
-
isHybridFlowEnabled
Get whether the implicit flow is supported by this profile.- Specified by:
isHybridFlowEnabledin interfaceOIDCFlowAwareProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether implicit flow is supported by this profile
-
setHybridFlowEnabled
public void setHybridFlowEnabled(boolean flag) Set whether implicit flow is supported by this profile.- Parameters:
flag- flag to set
-
setHybridFlowEnabledPredicate
Set condition used to indicate whether implicit flow is supported by this profile.- Parameters:
condition- condition to set
-
isImplicitFlowEnabled
Get whether hybrid flow is supported by this profile.- Specified by:
isImplicitFlowEnabledin interfaceOAuth2FlowAwareProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether hybrid flow is supported by this profile
-
setImplicitFlowEnabled
public void setImplicitFlowEnabled(boolean flag) Set whether hybrid flow is supported by this profile.- Parameters:
flag- flag to set
-
setImplicitFlowEnabledPredicate
Set condition used to indicate whether hybrid flow is supported by this profile.- Parameters:
condition- condition to set.
-
isRefreshTokensEnabled
Get whether refresh tokens are supported by this profile.- Specified by:
isRefreshTokensEnabledin interfaceOAuth2FlowAwareProfileConfiguration- Parameters:
profileRequestContext- profile request context- Returns:
- whether refresh tokens are supported by this profile
-
setRefreshTokensEnabled
public void setRefreshTokensEnabled(boolean flag) Set whether refresh tokens are supported by this profile.- Parameters:
flag- flag to set
-
setRefreshTokensEnabledPredicate
Set condition used to indicate whether refresh tokens are supported by this profile.- Parameters:
condition- condition to set
-