org.apache.hadoop.hdfs.security
Class ExportedAccessKeys

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

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

Object for passing access keys


Field Summary
static ExportedAccessKeys DUMMY_KEYS
           
 
Constructor Summary
ExportedAccessKeys()
           
 
Method Summary
 boolean equals(Object obj)
          
 BlockAccessKey[] getAllKeys()
           
 BlockAccessKey getCurrentKey()
           
 long getKeyUpdateInterval()
           
 long getTokenLifetime()
           
 int hashCode()
          
 boolean isAccessTokenEnabled()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUMMY_KEYS

public static final ExportedAccessKeys DUMMY_KEYS
Constructor Detail

ExportedAccessKeys

public ExportedAccessKeys()
Method Detail

isAccessTokenEnabled

public boolean isAccessTokenEnabled()

getKeyUpdateInterval

public long getKeyUpdateInterval()

getTokenLifetime

public long getTokenLifetime()

getCurrentKey

public BlockAccessKey getCurrentKey()

getAllKeys

public BlockAccessKey[] getAllKeys()

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