org.apache.hadoop.security.token.DtFetcherSWebHdfsDtFetcher, WebHdfsDtFetcherpublic class HdfsDtFetcher
extends java.lang.Object
implements org.apache.hadoop.security.token.DtFetcher
| Constructor | Description |
|---|---|
HdfsDtFetcher() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.security.token.Token<?> |
addDelegationTokens(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.Credentials creds,
java.lang.String renewer,
java.lang.String url) |
Returns Token object via FileSystem, null if bad argument.
|
org.apache.hadoop.io.Text |
getServiceName() |
Returns the service name for HDFS, which is also a valid URL prefix.
|
boolean |
isTokenRequired() |
public org.apache.hadoop.io.Text getServiceName()
getServiceName in interface org.apache.hadoop.security.token.DtFetcherpublic boolean isTokenRequired()
isTokenRequired in interface org.apache.hadoop.security.token.DtFetcherpublic org.apache.hadoop.security.token.Token<?> addDelegationTokens(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.Credentials creds,
java.lang.String renewer,
java.lang.String url)
throws java.lang.Exception
addDelegationTokens in interface org.apache.hadoop.security.token.DtFetcherconf - - a Configuration object used with FileSystem.get()creds - - a Credentials object to which token(s) will be addedrenewer - - the renewer to send with the token requesturl - - the URL to which the request is sentjava.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.