public interface AuthenticationContext extends LogContext
AuthenticationContext
represents the context used in an
AuthenticationRule.authenticate(AuthenticationContext)
.
It contains information that can be used to authenticate a request.
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.HttpHeaders |
getHttpHeaders()
Returns an injectable interface that provides access to HTTP header information.
|
java.lang.String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
java.lang.String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
java.lang.String |
getRemoteUser()
Returns the login of the user making this request, if the
user has been authenticated, or
null if the user
has not been authenticated. |
java.lang.String |
getSessionId()
Returns a string containing the unique identifier assigned
to this session.
|
javax.ws.rs.core.UriInfo |
getUriInfo()
Returns an injectable interface that provides access to application and request
URI information.
|
log, logError, logWarn
javax.ws.rs.core.HttpHeaders getHttpHeaders()
HttpHeaders
javax.ws.rs.core.UriInfo getUriInfo()
UriInfo.getBaseUri()
java.lang.String getSessionId()
HttpSession.getId()
java.lang.String getRemoteAddr()
REMOTE_ADDR
.String
containing the
IP address of the client that sent the requestServletRequest.getRemoteAddr()
java.lang.String getRemoteHost()
REMOTE_HOST
.String
containing the fully
qualified name of the clientServletRequest.getRemoteHost()
java.lang.String getRemoteUser()
null
if the user
has not been authenticated.
Whether the user name is sent with each subsequent request
depends on the browser and type of authentication. Same as the
value of the CGI variable REMOTE_USER.String
specifying the login
of the user making this request, or null
if the user login is not knownHttpServletRequest.getRemoteUser()
Copyright © 2024. All rights reserved.