Package org.apache.hadoop.security.token.delegation.TestDelegationToken

Examples of org.apache.hadoop.security.token.delegation.TestDelegationToken.TestDelegationTokenIdentifier


    throws IOException {
      String owner = UserGroupInformation.getCurrentUser().getUserName();
      String realUser =
        UserGroupInformation.getCurrentUser().getRealUser() == null ? "":
        UserGroupInformation.getCurrentUser().getRealUser().getUserName();
      TestDelegationTokenIdentifier tokenId =
        new TestDelegationTokenIdentifier(
            new Text(owner), renewer, new Text(realUser));
      return new Token<TestDelegationTokenIdentifier>(tokenId, secretManager);
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.security.token.delegation.TestDelegationToken.TestDelegationTokenIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.