Class MessageInfoImpl
java.lang.Object
org.apache.catalina.authenticator.jaspic.MessageInfoImpl
- All Implemented Interfaces:
MessageInfo
Implementation of MessageInfo for JASPIC authentication.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey for the mandatory flag.protected static final StringManagerThe string manager for this class. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MessageInfoImpl(HttpServletRequest request, HttpServletResponse response, boolean authMandatory) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetMap()Returns a map of additional context information associated with this authentication exchange.Returns the request message object associated with this authentication exchange.Returns the response message object associated with this authentication exchange.voidsetRequestMessage(Object request) Sets the request message object for this authentication exchange.voidsetResponseMessage(Object response) Sets the response message object for this authentication exchange.
-
Field Details
-
sm
The string manager for this class. -
IS_MANDATORY
-
-
Constructor Details
-
MessageInfoImpl
public MessageInfoImpl()Default constructor. -
MessageInfoImpl
public MessageInfoImpl(HttpServletRequest request, HttpServletResponse response, boolean authMandatory) Constructor.- Parameters:
request- the requestresponse- the responseauthMandatory- whether auth is mandatory
-
-
Method Details
-
getMap
Description copied from interface:jakarta.security.auth.message.MessageInfoReturns a map of additional context information associated with this authentication exchange. The map may contain protocol-specific attributes such as message headers.- Specified by:
getMapin interfaceMessageInfo- Returns:
- a
Mapof context information, ornullif not available
-
getRequestMessage
Description copied from interface:jakarta.security.auth.message.MessageInfoReturns the request message object associated with this authentication exchange. The type of the returned object is protocol-specific.- Specified by:
getRequestMessagein interfaceMessageInfo- Returns:
- the request message object, or
nullif not available
-
getResponseMessage
Description copied from interface:jakarta.security.auth.message.MessageInfoReturns the response message object associated with this authentication exchange. The type of the returned object is protocol-specific.- Specified by:
getResponseMessagein interfaceMessageInfo- Returns:
- the response message object, or
nullif not available
-
setRequestMessage
Description copied from interface:jakarta.security.auth.message.MessageInfoSets the request message object for this authentication exchange.- Specified by:
setRequestMessagein interfaceMessageInfo- Parameters:
request- the request message object
-
setResponseMessage
Description copied from interface:jakarta.security.auth.message.MessageInfoSets the response message object for this authentication exchange.- Specified by:
setResponseMessagein interfaceMessageInfo- Parameters:
response- the response message object
-