|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.security.token.TokenRenewer org.apache.hadoop.security.token.Token.TrivialRenewer
public static class Token.TrivialRenewer
A trivial renewer for token kinds that aren't managed. Sub-classes need to implement getKind for their token kind.
Constructor Summary | |
---|---|
Token.TrivialRenewer()
|
Method Summary | |
---|---|
void |
cancel(Token<?> token,
Configuration conf)
Cancel the given token |
protected Text |
getKind()
|
boolean |
handleKind(Text kind)
Does this renewer handle this kind of token? |
boolean |
isManaged(Token<?> token)
Is the given token managed? Only managed tokens may be renewed or cancelled. |
long |
renew(Token<?> token,
Configuration conf)
Renew the given token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Token.TrivialRenewer()
Method Detail |
---|
protected Text getKind()
public boolean handleKind(Text kind)
TokenRenewer
handleKind
in class TokenRenewer
kind
- the kind of the token
public boolean isManaged(Token<?> token)
TokenRenewer
isManaged
in class TokenRenewer
token
- the token being checked
public long renew(Token<?> token, Configuration conf)
TokenRenewer
renew
in class TokenRenewer
public void cancel(Token<?> token, Configuration conf) throws IOException, InterruptedException
TokenRenewer
cancel
in class TokenRenewer
IOException
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |