org.apache.hadoop.hdfs.security
Class ExportedAccessKeys
java.lang.Object
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
DUMMY_KEYS
public static final ExportedAccessKeys DUMMY_KEYS
ExportedAccessKeys
public ExportedAccessKeys()
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