public class HttpHeadersToken extends Object implements org.apache.shiro.authc.HostAuthenticationToken
| Constructor and Description |
|---|
HttpHeadersToken(javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
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.
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getHeaders() |
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()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.