Package com.fullcontact.apilib.auth
Class StaticApiKeyCredentialProvider
- java.lang.Object
-
- com.fullcontact.apilib.auth.StaticApiKeyCredentialProvider
-
- All Implemented Interfaces:
CredentialsProvider
public class StaticApiKeyCredentialProvider extends java.lang.Object implements CredentialsProvider
Static way of providing authentication
-
-
Constructor Summary
Constructors Constructor Description StaticApiKeyCredentialProvider(java.lang.String apiKey)Hardcoded key can be passed in the constructor
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.fullcontact.apilib.auth.CredentialsProvider
getApiKey
-
-
-
-
Constructor Detail
-
StaticApiKeyCredentialProvider
public StaticApiKeyCredentialProvider(java.lang.String apiKey) throws FullContactExceptionHardcoded key can be passed in the constructor- Parameters:
apiKey- API key for auth- Throws:
FullContactException- if key is null or empty
-
-