public class AccessTokenValidator extends com.google.common.util.concurrent.AbstractIdleService implements TokenValidator
| Constructor and Description |
|---|
AccessTokenValidator(TokenManager tokenManager,
Codec<AccessToken> accessTokenCodec) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
shutDown() |
protected void |
startUp() |
TokenState |
validate(String token)
Validates the access token and returns the
TokenState
describing the cause to be in this state |
addListener, executor, isRunning, start, startAndWait, state, stop, stopAndWait, toString@Inject public AccessTokenValidator(TokenManager tokenManager, Codec<AccessToken> accessTokenCodec)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceExceptionpublic TokenState validate(String token)
TokenValidatorTokenState
describing the cause to be in this statevalidate in interface TokenValidatortoken - The token to be validated.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.