Package org.graylog2.security.realm
Class HTTPHeaderAuthenticationRealm
java.lang.Object
org.apache.shiro.realm.CachingRealm
org.apache.shiro.realm.AuthenticatingRealm
org.graylog2.security.realm.HTTPHeaderAuthenticationRealm
- All Implemented Interfaces:
org.apache.shiro.authc.LogoutAware
,org.apache.shiro.cache.CacheManagerAware
,org.apache.shiro.realm.Realm
,org.apache.shiro.util.Initializable
,org.apache.shiro.util.Nameable
public class HTTPHeaderAuthenticationRealm
extends org.apache.shiro.realm.AuthenticatingRealm
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHTTPHeaderAuthenticationRealm
(ClusterConfigService clusterConfigService, AuthServiceAuthenticator authServiceAuthenticator, Set<IpSubnet> trustedProxies) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.shiro.authc.AuthenticationInfo
doGetAuthenticationInfo
(org.apache.shiro.authc.AuthenticationToken token) Methods inherited from class org.apache.shiro.realm.AuthenticatingRealm
afterCacheManagerSet, assertCredentialsMatch, clearCachedAuthenticationInfo, doClearCache, getAuthenticationCache, getAuthenticationCacheKey, getAuthenticationCacheKey, getAuthenticationCacheName, getAuthenticationInfo, getAuthenticationTokenClass, getCredentialsMatcher, init, isAuthenticationCachingEnabled, isAuthenticationCachingEnabled, onInit, setAuthenticationCache, setAuthenticationCacheName, setAuthenticationCachingEnabled, setAuthenticationTokenClass, setCredentialsMatcher, setName, supports
Methods inherited from class org.apache.shiro.realm.CachingRealm
clearCache, getAvailablePrincipal, getCacheManager, getName, isCachingEnabled, onLogout, setCacheManager, setCachingEnabled
-
Field Details
-
NAME
- See Also:
-
SESSION_AUTH_HEADER
- See Also:
-
-
Constructor Details
-
HTTPHeaderAuthenticationRealm
@Inject public HTTPHeaderAuthenticationRealm(ClusterConfigService clusterConfigService, AuthServiceAuthenticator authServiceAuthenticator, @Named("trusted_proxies") Set<IpSubnet> trustedProxies)
-
-
Method Details
-
doGetAuthenticationInfo
protected org.apache.shiro.authc.AuthenticationInfo doGetAuthenticationInfo(org.apache.shiro.authc.AuthenticationToken token) throws org.apache.shiro.authc.AuthenticationException - Specified by:
doGetAuthenticationInfo
in classorg.apache.shiro.realm.AuthenticatingRealm
- Throws:
org.apache.shiro.authc.AuthenticationException
-