org.apache.hadoop.hdfs.security.token.block
Class BlockTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
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
BlockTokenIdentifier
public BlockTokenIdentifier()
BlockTokenIdentifier
public BlockTokenIdentifier(String userId,
long blockId,
EnumSet<BlockTokenSecretManager.AccessMode> modes)
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