org.apache.hadoop.hdfs.security.token.block
Class BlockTokenIdentifier

java.lang.Object
  extended by org.apache.hadoop.security.token.TokenIdentifier
      extended by org.apache.hadoop.hdfs.security.token.block.BlockTokenIdentifier
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Private
public class BlockTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier


Constructor Summary
BlockTokenIdentifier()
           
BlockTokenIdentifier(String userId, long blockId, EnumSet<BlockTokenSecretManager.AccessMode> modes)
           
 
Method Summary
 boolean equals(Object obj)
          
 EnumSet<BlockTokenSecretManager.AccessMode> getAccessModes()
           
 long getBlockId()
           
 byte[] getBytes()
           
 long getExpiryDate()
           
 int getKeyId()
           
 org.apache.hadoop.io.Text getKind()
           
 org.apache.hadoop.security.UserGroupInformation getUser()
           
 String getUserId()
           
 int hashCode()
          
 void readFields(DataInput in)
           
 void setExpiryDate(long expiryDate)
           
 void setKeyId(int keyId)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockTokenIdentifier

public BlockTokenIdentifier()

BlockTokenIdentifier

public BlockTokenIdentifier(String userId,
                            long blockId,
                            EnumSet<BlockTokenSecretManager.AccessMode> modes)
Method Detail

getKind

public org.apache.hadoop.io.Text getKind()
Specified by:
getKind in class org.apache.hadoop.security.token.TokenIdentifier

getUser

public org.apache.hadoop.security.UserGroupInformation getUser()
Specified by:
getUser in class org.apache.hadoop.security.token.TokenIdentifier

getExpiryDate

public long getExpiryDate()

setExpiryDate

public void setExpiryDate(long expiryDate)

getKeyId

public int getKeyId()

setKeyId

public void setKeyId(int keyId)

getUserId

public String getUserId()

getBlockId

public long getBlockId()

getAccessModes

public EnumSet<BlockTokenSecretManager.AccessMode> getAccessModes()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

getBytes

public byte[] getBytes()
Overrides:
getBytes in class org.apache.hadoop.security.token.TokenIdentifier


Copyright © 2009 The Apache Software Foundation