Package net.shibboleth.idp.admin.impl
Class DumpConfigRequestDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
net.shibboleth.idp.admin.impl.DumpConfigRequestDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
Decodes an incoming configuration reporting message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the query parameter for the CAS protocol: "cas" .static final StringName of the query parameter for the OIDC protocol: "oidc" .static final StringName of the query parameter carrying the profile: "profile" .static final StringName of the query parameter carrying the protocol: "protocol" .static final StringName of the query parameter carrying the requester: "requester" .static final StringName of the query parameter for the SAML 1 protocol: "saml1" .static final StringName of the query parameter for the SAML 2 protocol: "saml2" .Fields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDecode()protected StringgetProfileId(HttpServletRequest request) Get the profile ID.protected StringgetProtocolId(HttpServletRequest request) Get the protocol string used for metadata access.protected StringgetRequesterId(HttpServletRequest request) Get the ID of the requester.Methods inherited from class org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
doInitialize, getHttpServletRequest, getHttpServletRequestSupplier, setHttpServletRequestSupplierMethods inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
decode, getMessageContext, getMessageToLog, getProtocolMessageLogger, getProtocolMessageLoggerSubCategory, logDecodedMessage, serializeMessageForLogging, 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
-
PROFILE_PARAM
Name of the query parameter carrying the profile: "profile" .- See Also:
-
PROTOCOL_PARAM
Name of the query parameter carrying the protocol: "protocol" .- See Also:
-
SAML1_PARAM
Name of the query parameter for the SAML 1 protocol: "saml1" .- See Also:
-
SAML2_PARAM
Name of the query parameter for the SAML 2 protocol: "saml2" .- See Also:
-
CAS_PARAM
Name of the query parameter for the CAS protocol: "cas" .- See Also:
-
OIDC_PARAM
Name of the query parameter for the OIDC protocol: "oidc" .- See Also:
-
REQUESTER_ID_PARAM
Name of the query parameter carrying the requester: "requester" .- See Also:
-
-
Constructor Details
-
DumpConfigRequestDecoder
public DumpConfigRequestDecoder()Constructor.
-
-
Method Details
-
doDecode
- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
getProfileId
@Nonnull @NotEmpty protected String getProfileId(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the profile ID.- Parameters:
request- current HTTP request- Returns:
- the profile ID
- Throws:
MessageDecodingException- thrown if the request does not contain a profile ID
-
getRequesterId
@Nonnull @NotEmpty protected String getRequesterId(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the ID of the requester.- Parameters:
request- current HTTP request- Returns:
- the ID of the requester
- Throws:
MessageDecodingException- thrown if the request does not contain a requester name
-
getProtocolId
@Nonnull @NotEmpty protected String getProtocolId(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the protocol string used for metadata access.- Parameters:
request- current HTTP request- Returns:
- the protocol
- Throws:
MessageDecodingException- if unable to determine the protocol
-