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
Constructors -
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:
getPrincipalin 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:
getCredentialsin interfaceorg.apache.shiro.authc.AuthenticationToken- Returns:
- null
-
getHost
- Specified by:
getHostin 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:
getRemoteAddrin interfaceRemoteAddressAuthenticationToken- Returns:
- the direct peer's address
-