public class AbfsTokenRenewer
extends org.apache.hadoop.security.token.TokenRenewer
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
AbfsTokenRenewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration conf)
Cancel the delegation token.
|
boolean |
handleKind(org.apache.hadoop.io.Text kind)
Checks if this particular object handles the Kind of token passed.
|
boolean |
isManaged(org.apache.hadoop.security.token.Token<?> token)
Checks if passed token is managed.
|
long |
renew(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration conf)
Renew the delegation token.
|
public boolean handleKind(org.apache.hadoop.io.Text kind)
handleKind in class org.apache.hadoop.security.token.TokenRenewerkind - the kind of the tokenpublic boolean isManaged(org.apache.hadoop.security.token.Token<?> token)
throws IOException
isManaged in class org.apache.hadoop.security.token.TokenRenewertoken - the token being checkedIOException - thrown when evaluating if token is managed.public long renew(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
renew in class org.apache.hadoop.security.token.TokenRenewertoken - token to renew.conf - configuration object.IOException - thrown when trying get current user.InterruptedException - thrown when thread is interruptedpublic void cancel(org.apache.hadoop.security.token.Token<?> token,
org.apache.hadoop.conf.Configuration conf)
throws IOException,
InterruptedException
cancel in class org.apache.hadoop.security.token.TokenRenewertoken - token to cancel.conf - configuration object.IOException - thrown when trying get current user.InterruptedException - thrown when thread is interrupted.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.