Class HTTPPostAuthnRequestEncoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.encoder.AbstractMessageEncoder
org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
net.shibboleth.oidc.profile.encoding.impl.AbstractOIDCMessageEncoder
net.shibboleth.oidc.profile.encoding.impl.HTTPPostAuthnRequestEncoder
- All Implemented Interfaces:
Predicate<OAuth2AuthorizationProfileConfiguration.HttpRequestMethod>,OIDCMessageEncoder,Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageEncoder,HttpServletResponseMessageEncoder
@Deprecated(since="3.4.0",
forRemoval=true)
public class HTTPPostAuthnRequestEncoder
extends AbstractOIDCMessageEncoder
Deprecated, for removal: This API element is subject to removal in a future version.
A
message encoder that encodes an OpenID authentication request by
HTTP Form POST Serialization.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDigesterDeprecated, for removal: This API element is subject to removal in a future version.CSP digester for generating CSP hashes.private IdentifierGenerationStrategyDeprecated, for removal: This API element is subject to removal in a future version.CSP nonce generator.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Default template ID for using FORM POST request type.private final org.slf4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.Class logger.private org.apache.velocity.app.VelocityEngineDeprecated, for removal: This API element is subject to removal in a future version.Velocity engine used to evaluate the template when using FORM POST response mode.private StringDeprecated, for removal: This API element is subject to removal in a future version.ID of the Velocity template used when using FORM POST response mode.Fields inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoEncode()Deprecated, for removal: This API element is subject to removal in a future version.private org.apache.velocity.VelocityContextdoPostEncode(OIDCAuthenticationRequest request, HttpServletResponse httpResponse) Deprecated, for removal: This API element is subject to removal in a future version.Construct form POST.voidsetCSPDigester(StringDigester digester) Deprecated, for removal: This API element is subject to removal in a future version.Sets aStringDigesterto use in computing CSP digests in views.voidDeprecated, for removal: This API element is subject to removal in a future version.Sets anIdentifierGenerationStrategyto use in computing CSP nonces in views.voidsetVelocityEngine(org.apache.velocity.app.VelocityEngine newVelocityEngine) Deprecated, for removal: This API element is subject to removal in a future version.Set the VelocityEngine instance.voidsetVelocityTemplateId(String newVelocityTemplateId) Deprecated, for removal: This API element is subject to removal in a future version.Set the Velocity template id.booleantest(OAuth2AuthorizationProfileConfiguration.HttpRequestMethod requestMethod) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class net.shibboleth.oidc.profile.encoding.impl.AbstractOIDCMessageEncoder
createParametersFromRequest, createParametersFromRequest, serializeAuthorizationParamsToQueryString, serializeAuthorizationParamsToUrl, serializeLogoutParamsToUrl, serializeMessageForLogging, setAuthorizationParamsAreValidPredicate, validateParamsMethods inherited from class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
doInitialize, getHttpServletResponse, getHttpServletResponseSupplier, setHttpServletResponseSupplierMethods inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
encode, getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logEncodedMessage, prepareContext, setMessageContext, setProtocolMessageLoggerSubCategoryMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.DestructableComponent
destroy, isDestroyedMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitializedMethods inherited from interface org.opensaml.messaging.encoder.MessageEncoder
encode, prepareContext, setMessageContext
-
Field Details
-
DEFAULT_TEMPLATE_ID
Deprecated, for removal: This API element is subject to removal in a future version.Default template ID for using FORM POST request type.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logDeprecated, for removal: This API element is subject to removal in a future version.Class logger. -
velocityEngine
@Nullable private org.apache.velocity.app.VelocityEngine velocityEngineDeprecated, for removal: This API element is subject to removal in a future version.Velocity engine used to evaluate the template when using FORM POST response mode. -
velocityTemplateId
Deprecated, for removal: This API element is subject to removal in a future version.ID of the Velocity template used when using FORM POST response mode. -
cspDigester
Deprecated, for removal: This API element is subject to removal in a future version.CSP digester for generating CSP hashes. -
cspNonceGenerator
Deprecated, for removal: This API element is subject to removal in a future version.CSP nonce generator.
-
-
Constructor Details
-
HTTPPostAuthnRequestEncoder
public HTTPPostAuthnRequestEncoder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setVelocityTemplateId
Deprecated, for removal: This API element is subject to removal in a future version.Set the Velocity template id.Defaults to
DEFAULT_TEMPLATE_ID.- Parameters:
newVelocityTemplateId- the new Velocity template id
-
setVelocityEngine
public void setVelocityEngine(@Nonnull org.apache.velocity.app.VelocityEngine newVelocityEngine) Deprecated, for removal: This API element is subject to removal in a future version.Set the VelocityEngine instance.- Parameters:
newVelocityEngine- the new VelocityEngine instane
-
test
public boolean test(@Nullable OAuth2AuthorizationProfileConfiguration.HttpRequestMethod requestMethod) Deprecated, for removal: This API element is subject to removal in a future version. -
doPostEncode
private org.apache.velocity.VelocityContext doPostEncode(@Nonnull OIDCAuthenticationRequest request, @Nonnull HttpServletResponse httpResponse) throws MessageEncodingException Deprecated, for removal: This API element is subject to removal in a future version.Construct form POST.- Parameters:
request- the authentication request.httpResponse- the httpResponse.- Returns:
- response message as velocity context.
- Throws:
MessageEncodingException- on error building the parameters
-
doEncode
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
doEncodein classAbstractMessageEncoder- Throws:
MessageEncodingException
HTTPPostRequestEncoder, which now handles both authentication and logout requests.