@InterfaceAudience.Private @InterfaceStability.Evolving public class FsDelegationToken extends Object
Constructor and Description |
---|
FsDelegationToken(UserProvider userProvider,
String renewer) |
Modifier and Type | Method and Description |
---|---|
void |
acquireDelegationToken(org.apache.hadoop.fs.FileSystem fs)
Acquire the delegation token for the specified filesytem.
|
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
String |
getRenewer() |
UserProvider |
getUserProvider() |
org.apache.hadoop.security.token.Token<?> |
getUserToken() |
void |
releaseDelegationToken()
Releases a previously acquired delegation token.
|
public FsDelegationToken(UserProvider userProvider, String renewer)
public void acquireDelegationToken(org.apache.hadoop.fs.FileSystem fs) throws IOException
fs
- the filesystem that requires the delegation tokenIOException
- on fs.getDelegationToken() failurepublic void releaseDelegationToken()
public UserProvider getUserProvider()
public String getRenewer()
public org.apache.hadoop.security.token.Token<?> getUserToken()
public org.apache.hadoop.fs.FileSystem getFileSystem()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.