Package net.shibboleth.idp.profile.impl
Class ResolverTestRequestDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
net.shibboleth.idp.profile.impl.ResolverTestRequestDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
Decodes an incoming resolver test message.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the query parameter carrying the ACS index: "acsIndex" .static final StringName of the query parameter carrying the subject name: "principal" .static final StringName of the query parameter carrying the protocol: "protocol" .static final StringName of the query parameter carrying the requesterID: "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" .static final StringName of the query parameter for the unfiltered option: "unfiltered" .Fields inherited from class org.opensaml.messaging.decoder.AbstractMessageDecoder
BASE_PROTOCOL_MESSAGE_LOGGER_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoDecode()protected IntegergetIndex(HttpServletRequest request) Get the ACS index.protected StringgetPrincipal(HttpServletRequest request) Get the name of the subject.protected StringgetProtocol(HttpServletRequest request) Get the protocol.protected StringgetRequesterId(HttpServletRequest request) Get the ID of the requester.protected BooleangetUnfiltered(HttpServletRequest request) Get the unfiltered flag.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
-
PRINCIPAL_PARAM
Name of the query parameter carrying the subject name: "principal" .- See Also:
-
REQUESTER_ID_PARAM
Name of the query parameter carrying the requesterID: "requester" .- See Also:
-
ACS_INDEX_PARAM
Name of the query parameter carrying the ACS index: "acsIndex" .- 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:
-
UNFILTERED_PARAM
Name of the query parameter for the unfiltered option: "unfiltered" .- Since:
- 5.1.0
- See Also:
-
-
Constructor Details
-
ResolverTestRequestDecoder
public ResolverTestRequestDecoder()Constructor.
-
-
Method Details
-
doDecode
- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
getPrincipal
@Nonnull @NotEmpty protected String getPrincipal(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the name of the subject.- Parameters:
request- current HTTP request- Returns:
- the name of the subject
- Throws:
MessageDecodingException- thrown if the request does not contain a subject name
-
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
-
getIndex
Get the ACS index.- Parameters:
request- current HTTP request- Returns:
- the ACS index, or null
-
getProtocol
Get the protocol.- Parameters:
request- current HTTP request- Returns:
- the protocol, or null
-
getUnfiltered
Get the unfiltered flag.- Parameters:
request- current HTTP request- Returns:
- the unfiltered flag, or null
- Since:
- 5.1.0
-