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()
TokenIdentifiergetKind 在类中 TokenIdentifierpublic UserGroupInformation getUser()
TokenIdentifiergetUser 在类中 TokenIdentifierpublic 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
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionpublic byte[] getBytes()
TokenIdentifiergetBytes 在类中 TokenIdentifierCopyright © 2009 The Apache Software Foundation