Class HTTPRedirectAuthnRequestEncoder
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.encoder.AbstractMessageEncoder
-
- org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
-
- net.shibboleth.oidc.profile.encoder.impl.AbstractOIDCMessageEncoder
-
- net.shibboleth.oidc.profile.encoder.impl.HTTPRedirectAuthnRequestEncoder
-
- All Implemented Interfaces:
Predicate<OIDCAuthorizationConfiguration.OIDCHttpRequestMethod>,OIDCMessageEncoder,Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageEncoder,HttpServletResponseMessageEncoder
public class HTTPRedirectAuthnRequestEncoder extends AbstractOIDCMessageEncoder
Amessage encoderthat encodes an OpenID authentication request by Query String Serialization and sends a HTTP redirect response.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description HTTPRedirectAuthnRequestEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildRedirectURL(MessageContext messageContext, OIDCAuthenticationRequest request)Build the URL to redirect the client to using parameters in the authentication request.protected voiddoEncode()booleantest(OIDCAuthorizationConfiguration.OIDCHttpRequestMethod requestMethod)-
Methods inherited from class net.shibboleth.oidc.profile.encoder.impl.AbstractOIDCMessageEncoder
createParametersFromRequest, serializeAuthorizationParamsToQueryString, serializeAuthorizationParamsToUrl
-
Methods inherited from class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
doDestroy, doInitialize, getHttpServletResponse, setHttpServletResponse
-
Methods inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
encode, getMessageContext, prepareContext, setMessageContext
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.DestructableComponent
destroy, isDestroyed
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
Methods inherited from interface org.opensaml.messaging.encoder.MessageEncoder
encode, prepareContext, setMessageContext
-
-
-
-
Method Detail
-
test
public boolean test(@Nonnull OIDCAuthorizationConfiguration.OIDCHttpRequestMethod requestMethod)
-
doEncode
protected void doEncode() throws MessageEncodingException- Specified by:
doEncodein classAbstractMessageEncoder- Throws:
MessageEncodingException
-
buildRedirectURL
protected String buildRedirectURL(MessageContext messageContext, OIDCAuthenticationRequest request) throws MessageEncodingException
Build the URL to redirect the client to using parameters in the authentication request.- Parameters:
messageContext- the current message contextrequest- the authentication request- Returns:
- a URL to redirect the client to.
- Throws:
MessageEncodingException- if there is an issue building the URL or the endpoint is null.
-
-