Class BaseOAuth2RequestDecoder<T extends com.nimbusds.oauth2.sdk.Request>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.decoder.AbstractMessageDecoder
-
- org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
-
- net.shibboleth.idp.plugin.oidc.op.oauth2.decoding.impl.BaseOAuth2RequestDecoder<T>
-
- Type Parameters:
T- The exact type of the request message, extendsRequest.
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
- Direct Known Subclasses:
OAuth2IntrospectionRequestDecoder,OAuth2RevocationRequestDecoder,OIDCAuthenticationRequestDecoder,OIDCClientRegistrationRequestDecoder,OIDCTokenRequestDecoder,OIDCUserInfoRequestDecoder
public abstract class BaseOAuth2RequestDecoder<T extends com.nimbusds.oauth2.sdk.Request> extends AbstractHttpServletRequestMessageDecoder
Base decoder for Nimbus OAuth2 request messages.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private org.slf4j.LoggerprotocolMessageLogUsed to log protocol messages.
-
Constructor Summary
Constructors Constructor Description BaseOAuth2RequestDecoder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddoDecode()protected abstract StringgetMessageToLog(T message)Get the string representation of what will be logged as the protocol message.protected org.slf4j.LoggergetProtocolMessageLog()Get the protocol message logger.protected abstract TparseMessage()Parses the message into the exact type of the request message.-
Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
decode, doDestroy, doInitialize, getHttpServletRequest, setHttpServletRequest
-
Methods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
getMessageContext, 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.decoder.MessageDecoder
getMessageContext
-
-
-
-
Method Detail
-
doDecode
protected void doDecode() throws MessageDecodingException- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
getProtocolMessageLog
@Nonnull protected org.slf4j.Logger getProtocolMessageLog()
Get the protocol message logger.- Returns:
- The protocol message logger
-
parseMessage
@Nullable protected abstract T parseMessage() throws MessageDecodingException
Parses the message into the exact type of the request message.- Returns:
- The request message
- Throws:
MessageDecodingException- if there is a problem decoding the message context
-
-