public class BlockTokenIdentifier extends TokenIdentifier
限定符和类型 | 类和说明 |
---|---|
static class |
BlockTokenIdentifier.Renewer |
构造器和说明 |
---|
BlockTokenIdentifier() |
BlockTokenIdentifier(String userId,
long[] blockIds,
EnumSet<BlockTokenSecretManager.AccessMode> modes) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object obj) |
EnumSet<BlockTokenSecretManager.AccessMode> |
getAccessModes() |
long[] |
getBlockIds()
Return sorted array of blockIds this
BlockTokenIdentifier includes |
byte[] |
getBytes()
Get the bytes for the token identifier
|
long |
getExpiryDate() |
int |
getKeyId() |
Text |
getKind()
Get the token kind
|
UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier
|
String |
getUserId() |
int |
hashCode() |
boolean |
isBlockIncluded(long blockId)
Is specified blockId included in this BlockTokenIdentifier?
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
void |
setExpiryDate(long expiryDate) |
void |
setKeyId(int keyId) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public BlockTokenIdentifier()
public BlockTokenIdentifier(String userId, long[] blockIds, EnumSet<BlockTokenSecretManager.AccessMode> modes)
public Text getKind()
TokenIdentifier
getKind
在类中 TokenIdentifier
public UserGroupInformation getUser()
TokenIdentifier
getUser
在类中 TokenIdentifier
public long getExpiryDate()
public void setExpiryDate(long expiryDate)
public int getKeyId()
public void setKeyId(int keyId)
public String getUserId()
public long[] getBlockIds()
BlockTokenIdentifier
includespublic boolean isBlockIncluded(long blockId)
public EnumSet<BlockTokenSecretManager.AccessMode> getAccessModes()
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.out
- DataOuput
to serialize this object into.IOException
public byte[] getBytes()
TokenIdentifier
getBytes
在类中 TokenIdentifier
Copyright © 2009 The Apache Software Foundation