Class AbstractOIDCMessageEncoder
- 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
-
- All Implemented Interfaces:
Predicate<OIDCAuthorizationConfiguration.OIDCHttpRequestMethod>,OIDCMessageEncoder,Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageEncoder,HttpServletResponseMessageEncoder
- Direct Known Subclasses:
HTTPPostAuthnRequestEncoder,HTTPRedirectAuthnRequestEncoder
public abstract class AbstractOIDCMessageEncoder extends AbstractHttpServletResponseMessageEncoder implements OIDCMessageEncoder
Base class for OIDC message encoders.
-
-
Constructor Summary
Constructors Constructor Description AbstractOIDCMessageEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Pair<String,String>>createParametersFromRequest(OIDCAuthenticationRequest req)Create a list of OAuth 2.0 authorization parameters from theOIDCAuthenticationRequestobject.protected StringserializeAuthorizationParamsToQueryString(OIDCAuthenticationRequest request)Serialize OAuth 2.0 authorization parameters from the authentication request to a query string.protected voidserializeAuthorizationParamsToUrl(OIDCAuthenticationRequest request, URLBuilder builder)Serialize OAuth 2.0 authorization parameters from the authentication request to the query string of the URL.-
Methods inherited from class org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder
doDestroy, doInitialize, getHttpServletResponse, setHttpServletResponse
-
Methods inherited from class org.opensaml.messaging.encoder.AbstractMessageEncoder
doEncode, 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
-
serializeAuthorizationParamsToUrl
protected void serializeAuthorizationParamsToUrl(@Nonnull OIDCAuthenticationRequest request, @Nonnull URLBuilder builder)Serialize OAuth 2.0 authorization parameters from the authentication request to the query string of the URL.- Parameters:
request- the authentication request.builder- the URL builder to add the query parameters to.
-
serializeAuthorizationParamsToQueryString
protected String serializeAuthorizationParamsToQueryString(@Nonnull OIDCAuthenticationRequest request)
Serialize OAuth 2.0 authorization parameters from the authentication request to a query string.- Parameters:
request- the authentication request query string.- Returns:
- the query string.
-
createParametersFromRequest
protected List<Pair<String,String>> createParametersFromRequest(@Nonnull OIDCAuthenticationRequest req)
Create a list of OAuth 2.0 authorization parameters from theOIDCAuthenticationRequestobject.- Parameters:
req- the authentication request- Returns:
- a list of authorization parameters.
-
-