Class DefaultAuthCodeTokenRequestEncoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.plugin.authn.oidc.rp.encoding.impl.AbstractRequestEncoderFunction
-
- net.shibboleth.idp.plugin.authn.oidc.rp.encoding.impl.DefaultAuthCodeTokenRequestEncoder
-
- All Implemented Interfaces:
Function<ProfileRequestContext,org.apache.http.client.methods.HttpUriRequest>,Component,DestructableComponent,InitializableComponent
@Deprecated public class DefaultAuthCodeTokenRequestEncoder extends AbstractRequestEncoderFunction
Deprecated.A token request encoder that builds an OAuth2.0 Access Token Request for an authorization code grant request.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthCodeTokenRequestEncoder()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private voidaddRequiredFields(org.apache.http.client.methods.RequestBuilder rb)Deprecated.Add all required fields for the given grant_type to the request.private voidaddRequiredOnConditionFields(org.apache.http.client.methods.RequestBuilder rb)Deprecated.Add all fields to the request that are required if a given condition is met.private voidbuildSecretBasicAuthentication(org.apache.http.client.methods.RequestBuilder rb)Deprecated.Build the client_secret_basic authentication using pre-emptive HTTP Basic auth.org.apache.http.client.methods.HttpUriRequestdoApply(ProfileRequestContext profileRequestContext)Deprecated.Encode a HttpUriRequest from the given context.-
Methods inherited from class net.shibboleth.idp.plugin.authn.oidc.rp.encoding.impl.AbstractRequestEncoderFunction
apply, getAuthenticationRequest, getAuthenticationResponse, getClientAuthenticationContext, getProviderMetadataContext, setOIDCClientAuthenticationContextContextLookupStrategy, setProviderMetadataLookupStrategy
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
HTTPS
@Nonnull @NotEmpty private static final String HTTPS
Deprecated.The HTTPS scheme.- See Also:
- Constant Field Values
-
log
@Nonnull private final org.slf4j.Logger log
Deprecated.Class logger.
-
-
Method Detail
-
doApply
@Nullable public org.apache.http.client.methods.HttpUriRequest doApply(@Nonnull ProfileRequestContext profileRequestContext)Deprecated.Description copied from class:AbstractRequestEncoderFunctionEncode a HttpUriRequest from the given context. Implementations should override this method.- Specified by:
doApplyin classAbstractRequestEncoderFunction- Parameters:
profileRequestContext- the profile request context.- Returns:
- the request to execute.
-
addRequiredFields
private void addRequiredFields(@Nonnull org.apache.http.client.methods.RequestBuilder rb)Deprecated.Add all required fields for the given grant_type to the request.- Parameters:
rb- the request builder.
-
addRequiredOnConditionFields
private void addRequiredOnConditionFields(@Nonnull org.apache.http.client.methods.RequestBuilder rb)Deprecated.Add all fields to the request that are required if a given condition is met.- Parameters:
rb- the request builder.
-
buildSecretBasicAuthentication
private void buildSecretBasicAuthentication(org.apache.http.client.methods.RequestBuilder rb)
Deprecated.Build the client_secret_basic authentication using pre-emptive HTTP Basic auth.- Parameters:
rb- the request builder to use.
-
-