Class ServletMessageInfo
java.lang.Object
org.wildfly.security.auth.jaspi.impl.ElytronMessageInfo
org.wildfly.security.auth.jaspi.impl.ServletMessageInfo
- All Implemented Interfaces:
jakarta.security.auth.message.MessageInfo
A servlet profile specific
MessageInfo that ensures the request and response types remain valid and allows wrapping
an existing message info during validateRequest and unwrapping during secureResponse.- Author:
- Darran Lofthouse
-
Nested Class Summary
Nested classes/interfaces inherited from class org.wildfly.security.auth.jaspi.impl.ElytronMessageInfo
ElytronMessageInfo.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRequestMessage(Object requestMessage) Set the request message ensuring that it is an instance ofHttpServletRequest, also ensure wrapping only occurs during calls to validateRequest and unwrapping occurs during calls to secureResponse.voidsetResponseMessage(Object responseMessage) Set the response message ensuring that it is an instance ofHttpServletResponse, also ensure wrapping only occurs during calls to validateRequest and unwrapping occurs during calls to secureResponse.Methods inherited from class org.wildfly.security.auth.jaspi.impl.ElytronMessageInfo
getMap, getRequestMessage, getResponseMessage, getState
-
Constructor Details
-
ServletMessageInfo
public ServletMessageInfo()
-
-
Method Details
-
setRequestMessage
Set the request message ensuring that it is an instance ofHttpServletRequest, also ensure wrapping only occurs during calls to validateRequest and unwrapping occurs during calls to secureResponse.- Specified by:
setRequestMessagein interfacejakarta.security.auth.message.MessageInfo- Overrides:
setRequestMessagein classElytronMessageInfo- Parameters:
requestMessage- the request message.- See Also:
-
setResponseMessage
Set the response message ensuring that it is an instance ofHttpServletResponse, also ensure wrapping only occurs during calls to validateRequest and unwrapping occurs during calls to secureResponse.- Specified by:
setResponseMessagein interfacejakarta.security.auth.message.MessageInfo- Overrides:
setResponseMessagein classElytronMessageInfo- Parameters:
responseMessage- the response message.- See Also:
-