org.apache.hadoop.hdfs.security
Class BlockAccessKey

java.lang.Object
  extended by org.apache.hadoop.hdfs.security.BlockAccessKey
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Private
public class BlockAccessKey
extends Object
implements org.apache.hadoop.io.Writable

Key used for generating and verifying access tokens


Constructor Summary
BlockAccessKey()
           
BlockAccessKey(long keyID, org.apache.hadoop.io.Text key, long expiryDate)
           
 
Method Summary
 boolean equals(Object obj)
          
 long getExpiryDate()
           
 org.apache.hadoop.io.Text getKey()
           
 long getKeyID()
           
 Mac getMac()
           
 int hashCode()
          
 void readFields(DataInput in)
           
 void setMac(Mac mac)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockAccessKey

public BlockAccessKey()

BlockAccessKey

public BlockAccessKey(long keyID,
                      org.apache.hadoop.io.Text key,
                      long expiryDate)
Method Detail

getKeyID

public long getKeyID()

getKey

public org.apache.hadoop.io.Text getKey()

getExpiryDate

public long getExpiryDate()

getMac

public Mac getMac()

setMac

public void setMac(Mac mac)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2009 The Apache Software Foundation