Class GcsDtFetcher
- java.lang.Object
-
- com.google.cloud.hadoop.fs.gcs.auth.GcsDtFetcher
-
- All Implemented Interfaces:
org.apache.hadoop.security.token.DtFetcher
public class GcsDtFetcher extends Object implements org.apache.hadoop.security.token.DtFetcher
A DT fetcher for GCS. This is a copy-and-paste oforg.apache.hadoop.hdfs.HdfsDtFetcher.
-
-
Constructor Summary
Constructors Constructor Description GcsDtFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.security.token.Token<?>addDelegationTokens(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.Credentials creds, String renewer, String url)Returns Token object via FileSystem, null if bad argument.org.apache.hadoop.io.TextgetServiceName()Returns the service name for GCS, which is also a valid URL prefix.booleanisTokenRequired()
-
-
-
Method Detail
-
getServiceName
public org.apache.hadoop.io.Text getServiceName()
Returns the service name for GCS, which is also a valid URL prefix.- Specified by:
getServiceNamein interfaceorg.apache.hadoop.security.token.DtFetcher
-
isTokenRequired
public boolean isTokenRequired()
- Specified by:
isTokenRequiredin interfaceorg.apache.hadoop.security.token.DtFetcher
-
addDelegationTokens
public org.apache.hadoop.security.token.Token<?> addDelegationTokens(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.security.Credentials creds, String renewer, String url) throws ExceptionReturns Token object via FileSystem, null if bad argument.- Specified by:
addDelegationTokensin interfaceorg.apache.hadoop.security.token.DtFetcher- Parameters:
conf- - 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 sent- Returns:
- a Token, or null if fetch fails.
- Throws:
Exception
-
-