agave-apps/clients/AuthService.java
/**
	 * Checks the provided token for validity by calling the auth service.
	 * 
	 * @param token AuthenticationToken to verify
	 * @return true if the AuthenticationToken is valid. false otherwise.
	 * @throws APIClientException
	 * @throws AuthenticationException
	 */
Checks the provided token for validity by calling the auth service.

@param token AuthenticationToken to verify
@return true if the AuthenticationToken is valid. false otherwise.
Checks the provided token for validity by calling the auth service . @param token AuthenticationToken to verify @return true if the AuthenticationToken is valid . false otherwise .
public boolean verify(AuthenticationToken token) 
	throws APIClientException, AuthenticationException
	{
		if (token == null) {
			throw new APIClientException("No token provided.");
		}
		APIResponse response = null;
		try 
		{
			response = get( Settings.SERVICE_BASE_URL + "auth-v1/", token );
			return response.isSuccess();
		} 
		catch (APIClientException e) {
			throw new AuthenticationException("Error authenticating to service.", e);
		}
	}
public boolean verify ( AuthenticationToken token ) throws APIClientException , AuthenticationException { if ( token == null ) { throw new APIClientException ( "No token provided." ) ; } APIResponse response = null ; try { response = get ( Settings . SERVICE_BASE_URL + "auth-v1/" , token ) ; return response . isSuccess ( ) ; } catch ( APIClientException e ) { throw new AuthenticationException ( "Error authenticating to service." , e ) ; } }
Checks the provided token for validity by calling the auth service.
Checks the provided token for validity by calling the auth service .