Class OIDCClientRegistrationRequestDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
net.shibboleth.idp.plugin.oidc.op.oauth2.decoding.impl.BaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
net.shibboleth.idp.plugin.oidc.op.decoding.impl.OIDCClientRegistrationRequestDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
public class OIDCClientRegistrationRequestDecoder
extends BaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>
Message decoder decoding OpenID Connect
ClientRegistrationRequests.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private com.fasterxml.jackson.databind.ObjectMapperObject mapper used for pretty-printing JSON in the request.Fields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected StringgetMessageToLog(com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest message) Get the string representation of what will be logged as the protocol message.protected com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequestParses the message into the exact type of the request message.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for pretty-printing JSON in the request.Methods inherited from class net.shibboleth.idp.plugin.oidc.op.oauth2.decoding.impl.BaseOAuth2RequestDecoder
doDecode, getEndpointURI, serializeMessageForLogging, setRemoveIpAddressFromEndpointUri, switchIntoCustomResourceMethods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequestSupplierMethods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
decode, getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logDecodedMessage, 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.decoder.MessageDecoder
decode, getMessageContext
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
objectMapper
Object mapper used for pretty-printing JSON in the request.
-
-
Constructor Details
-
OIDCClientRegistrationRequestDecoder
public OIDCClientRegistrationRequestDecoder()
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the object mapper used for pretty-printing JSON in the request.- Parameters:
mapper- What to set.- Since:
- 4.1.0
-
doInitialize
- Overrides:
doInitializein classAbstractHttpServletRequestMessageDecoder- Throws:
ComponentInitializationException
-
parseMessage
protected com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest parseMessage() throws MessageDecodingExceptionParses the message into the exact type of the request message.- Specified by:
parseMessagein classBaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>- Returns:
- The request message
- Throws:
MessageDecodingException- if there is a problem decoding the message context
-
getMessageToLog
protected String getMessageToLog(@Nullable com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest message) Get the string representation of what will be logged as the protocol message.- Specified by:
getMessageToLogin classBaseOAuth2RequestDecoder<com.nimbusds.openid.connect.sdk.rp.OIDCClientRegistrationRequest>- Parameters:
message- the request message- Returns:
- the string representing the protocol message for logging purposes
-