Package net.shibboleth.idp.profile.impl
Class MetadataQueryRequestDecoder
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.messaging.decoder.AbstractMessageDecoder
org.opensaml.messaging.decoder.servlet.AbstractHttpServletRequestMessageDecoder
net.shibboleth.idp.profile.impl.MetadataQueryRequestDecoder
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,UnmodifiableComponent,MessageDecoder,HttpServletRequestMessageDecoder
Decodes an incoming metadata query request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the query parameter for the CAS protocol: "cas" .static final StringName of the query parameter carrying the detectDuplicateEntityIDs: "detectDuplicateEntityIDs" .static final StringName of the query parameter carrying the entityID: "entityID" .static final StringName of the query parameter carrying the protocol: "protocol" .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 DetectDuplicateEntityIDsGet the strategy for duplicate entityID detection.protected StringgetEntityID(HttpServletRequest request) Get the entityID parameter.protected StringgetProtocol(HttpServletRequest request) Get the protocol.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
-
ENTITY_ID_PARAM
Name of the query parameter carrying the entityID: "entityID" .- 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:
-
DETECT_DUPLICATES_PARAM
Name of the query parameter carrying the detectDuplicateEntityIDs: "detectDuplicateEntityIDs" .- See Also:
-
-
Constructor Details
-
MetadataQueryRequestDecoder
public MetadataQueryRequestDecoder()Constructor.
-
-
Method Details
-
doDecode
- Specified by:
doDecodein classAbstractMessageDecoder- Throws:
MessageDecodingException
-
getEntityID
@Nonnull @NotEmpty protected String getEntityID(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the entityID parameter.- Parameters:
request- current HTTP request- Returns:
- the entityID
- Throws:
MessageDecodingException- thrown if the request does not contain an entityID
-
getProtocol
Get the protocol.- Parameters:
request- current HTTP request- Returns:
- the protocol, or null
-
getDetectDuplicateEntityIDs
@Nullable protected DetectDuplicateEntityIDs getDetectDuplicateEntityIDs(@Nonnull HttpServletRequest request) throws MessageDecodingException Get the strategy for duplicate entityID detection.- Parameters:
request- current HTTP request- Returns:
- the strategy, or null
- Throws:
MessageDecodingException- if the request request contains an invalid value fordetectDuplicateEntityIDs
-