Class MessageInfoImpl
- java.lang.Object
-
- org.apache.catalina.authenticator.jaspic.MessageInfoImpl
-
- All Implemented Interfaces:
MessageInfo
public class MessageInfoImpl extends java.lang.Object implements MessageInfo
Implementation of MessageInfo for JASPIC authentication.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIS_MANDATORYKey for the mandatory flag.protected static StringManagersmThe string manager for this class.
-
Constructor Summary
Constructors Constructor Description MessageInfoImpl()Default constructor.MessageInfoImpl(HttpServletRequest request, HttpServletResponse response, boolean authMandatory)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getMap()Returns a map of additional context information associated with this authentication exchange.java.lang.ObjectgetRequestMessage()Returns the request message object associated with this authentication exchange.java.lang.ObjectgetResponseMessage()Returns the response message object associated with this authentication exchange.voidsetRequestMessage(java.lang.Object request)Sets the request message object for this authentication exchange.voidsetResponseMessage(java.lang.Object response)Sets the response message object for this authentication exchange.
-
-
-
Field Detail
-
sm
protected static final StringManager sm
The string manager for this class.
-
IS_MANDATORY
public static final java.lang.String IS_MANDATORY
Key for the mandatory flag.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getMap
public java.util.Map<java.lang.String,java.lang.Object> 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
public java.lang.Object 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
public java.lang.Object 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
public void setRequestMessage(java.lang.Object request)
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
public void setResponseMessage(java.lang.Object response)
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
-
-