public class PossibleTrustedHeaderToken extends Object implements org.apache.shiro.authc.HostAuthenticationToken, RemoteAddressAuthenticationToken
| Constructor and Description |
|---|
PossibleTrustedHeaderToken(String host,
String remoteAddr) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials()
A HttpHeadersToken does not have a natural credential associated with it, so this is always null.
|
String |
getHost() |
Object |
getPrincipal()
A HttpHeadersToken does not have a natural principal associated with it, so this is always null.
|
String |
getRemoteAddr()
The direct remote address, if the request came through a proxy, this will be the address of last hop.
|
@Nullable public Object getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationToken@Nullable public Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenpublic String getHost()
getHost in interface org.apache.shiro.authc.HostAuthenticationTokenpublic String getRemoteAddr()
getRemoteAddr in interface RemoteAddressAuthenticationTokenCopyright © 2012–2022 Graylog, Inc.. All rights reserved.