public class AuthenticationDataHttp extends Object implements AuthenticationDataSource
| Modifier and Type | Field and Description |
|---|---|
protected SocketAddress |
remoteAddress |
protected javax.servlet.http.HttpServletRequest |
request |
| Constructor and Description |
|---|
AuthenticationDataHttp(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpAuthType() |
String |
getHttpHeader(String name) |
SocketAddress |
getPeerAddress() |
boolean |
hasDataFromHttp()
Check if data from HTTP are available.
|
boolean |
hasDataFromPeer()
Check if data from peer are available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getCommandData, getSubscription, getTlsCertificates, hasDataFromCommand, hasDataFromTls, hasSubscription, setSubscriptionprotected final javax.servlet.http.HttpServletRequest request
protected final SocketAddress remoteAddress
public AuthenticationDataHttp(javax.servlet.http.HttpServletRequest request)
public boolean hasDataFromHttp()
AuthenticationDataSourcehasDataFromHttp in interface AuthenticationDataSourcepublic String getHttpAuthType()
getHttpAuthType in interface AuthenticationDataSourcenull if the request is not be authenticated public String getHttpHeader(String name)
getHttpHeader in interface AuthenticationDataSourceString containing the value of the specified header, or null if the header
does not exist.public boolean hasDataFromPeer()
AuthenticationDataSourcehasDataFromPeer in interface AuthenticationDataSourcepublic SocketAddress getPeerAddress()
getPeerAddress in interface AuthenticationDataSourceString containing the IP address of the clientCopyright © 2017–2021 Apache Software Foundation. All rights reserved.