| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.token.TokenRenewer
public abstract class TokenRenewer
This is the interface for plugins that handle tokens.
| Constructor Summary | |
|---|---|
TokenRenewer()
 | 
|
| Method Summary | |
|---|---|
abstract  void | 
cancel(Token<?> token,
       Configuration conf)
Cancel the given token  | 
abstract  boolean | 
handleKind(Text kind)
Does this renewer handle this kind of token?  | 
abstract  boolean | 
isManaged(Token<?> token)
Is the given token managed? Only managed tokens may be renewed or cancelled.  | 
abstract  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 TokenRenewer()
| Method Detail | 
|---|
public abstract boolean handleKind(Text kind)
kind - the kind of the token
public abstract boolean isManaged(Token<?> token)
                           throws IOException
token - the token being checked
IOException
public abstract long renew(Token<?> token,
                           Configuration conf)
                    throws IOException,
                           InterruptedException
IOException
InterruptedException
public abstract void cancel(Token<?> token,
                            Configuration conf)
                     throws IOException,
                            InterruptedException
IOException
InterruptedException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||