Package org.graylog2.shared.security
Class PossibleTrustedHeaderToken
java.lang.Object
org.graylog2.shared.security.PossibleTrustedHeaderToken
- All Implemented Interfaces:
Serializable
,org.apache.shiro.authc.AuthenticationToken
,org.apache.shiro.authc.HostAuthenticationToken
,RemoteAddressAuthenticationToken
public class PossibleTrustedHeaderToken
extends Object
implements org.apache.shiro.authc.HostAuthenticationToken, RemoteAddressAuthenticationToken
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA HttpHeadersToken does not have a natural credential associated with it, so this is always null.getHost()
A HttpHeadersToken does not have a natural principal associated with it, so this is always null.The direct remote address, if the request came through a proxy, this will be the address of last hop.
-
Constructor Details
-
PossibleTrustedHeaderToken
-
-
Method Details
-
getPrincipal
A HttpHeadersToken does not have a natural principal associated with it, so this is always null.- Specified by:
getPrincipal
in interfaceorg.apache.shiro.authc.AuthenticationToken
- Returns:
- null
-
getCredentials
A HttpHeadersToken does not have a natural credential associated with it, so this is always null.- Specified by:
getCredentials
in interfaceorg.apache.shiro.authc.AuthenticationToken
- Returns:
- null
-
getHost
- Specified by:
getHost
in interfaceorg.apache.shiro.authc.HostAuthenticationToken
-
getRemoteAddr
The direct remote address, if the request came through a proxy, this will be the address of last hop. Typically used to verify that a client is "trusted".- Specified by:
getRemoteAddr
in interfaceRemoteAddressAuthenticationToken
- Returns:
- the direct peer's address
-