Class ServletMessageInfo
- java.lang.Object
-
- org.wildfly.security.auth.jaspi.impl.ElytronMessageInfo
-
- org.wildfly.security.auth.jaspi.impl.ServletMessageInfo
-
- All Implemented Interfaces:
MessageInfo
public class ServletMessageInfo extends ElytronMessageInfo
A servlet profile specificMessageInfothat 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 Constructor Description ServletMessageInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetRequestMessage(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
-
-
-
-
Method Detail
-
setRequestMessage
public void setRequestMessage(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.- Specified by:
setRequestMessagein interfaceMessageInfo- Overrides:
setRequestMessagein classElytronMessageInfo- Parameters:
requestMessage- the request message.- See Also:
MessageInfo.setRequestMessage(java.lang.Object)
-
setResponseMessage
public void setResponseMessage(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.- Specified by:
setResponseMessagein interfaceMessageInfo- Overrides:
setResponseMessagein classElytronMessageInfo- Parameters:
responseMessage- the response message.- See Also:
MessageInfo.setResponseMessage(java.lang.Object)
-
-