Package org.apache.hadoop.yarn.security.client

Examples of org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier.readFields()


    throws IOException {
    ByteArrayInputStream buf = new ByteArrayInputStream(token.getIdentifier());
    DataInputStream dis = new DataInputStream(buf);
    TimelineDelegationTokenIdentifier id = new TimelineDelegationTokenIdentifier();
    try {
      id.readFields(dis);
      secretManager.verifyToken(id, token.getPassword());
    } finally {
      dis.close();
    }
    return id.getUser();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.