public boolean invalidateToken(final String userId){
  credentialsStoreLock.lock();
  try {
    return credentialsStore.remove(userId) != null;
  }
  finally {
    credentialsStoreLock.unlock();
  }
}

public boolean invalidateToken ( final String userId ) { credentialsStoreLock . lock ( ) ; try { return credentialsStore . remove ( userId ) != null ; } finally { credentialsStoreLock . unlock ( ) ; } }
invalidate oauth token for specified user .
