/// <exception cref="System.Exception"/> public Void Run() { IPEndPoint serviceAddr = SecurityUtil.GetTokenServiceAddr(token); DelegationTokenFetcher.CancelDelegationToken(this._enclosing.connectionFactory, DFSUtil .CreateUri(this._enclosing.GetUnderlyingProtocol(), serviceAddr), (Org.Apache.Hadoop.Security.Token.Token <DelegationTokenIdentifier>)token); return(null); }
public virtual void TestCancelTokenFromHttp() { bootstrap = StartHttpServer(httpPort, testToken, serviceUrl); DelegationTokenFetcher.CancelDelegationToken(connectionFactory, serviceUrl, testToken ); if (assertionError != null) { throw assertionError; } }
public virtual void ExpectedTokenCancelFail() { try { DelegationTokenFetcher.CancelDelegationToken(connectionFactory, serviceUrl, testToken ); NUnit.Framework.Assert.Fail("Token fetcher shouldn't be able to cancel tokens in absense of NN" ); } catch (IOException) { } }