public class AuthenticationDataHttp extends Object implements AuthenticationDataSource
| Modifier and Type | Field and Description |
|---|---|
protected SocketAddress |
remoteAddress |
protected javax.servlet.http.HttpServletRequest |
request |
protected String |
subscription |
| Constructor and Description |
|---|
AuthenticationDataHttp(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpAuthType() |
String |
getHttpHeader(String name) |
SocketAddress |
getPeerAddress() |
String |
getSubscription()
Subscription name can be necessary for consumption.
|
boolean |
hasDataFromHttp()
Check if data from HTTP are available.
|
boolean |
hasDataFromPeer()
Check if data from peer are available.
|
boolean |
hasSubscription()
Check if subscription is defined available.
|
void |
setSubscription(String subscription)
Subscription name can be necessary for consumption.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getCommandData, getTlsCertificates, hasDataFromCommand, hasDataFromTlsprotected final javax.servlet.http.HttpServletRequest request
protected final SocketAddress remoteAddress
protected String subscription
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 clientpublic boolean hasSubscription()
AuthenticationDataSourcehasSubscription in interface AuthenticationDataSourcepublic void setSubscription(String subscription)
AuthenticationDataSourcesetSubscription in interface AuthenticationDataSourcepublic String getSubscription()
AuthenticationDataSourcegetSubscription in interface AuthenticationDataSourceString containing the subscription nameCopyright © 2017–2022 Apache Software Foundation. All rights reserved.