Class CredentialProviderToken
- java.lang.Object
-
- org.apache.accumulo.core.client.security.tokens.PasswordToken
-
- org.apache.accumulo.core.client.security.tokens.CredentialProviderToken
-
- All Implemented Interfaces:
Cloneable,Destroyable,AuthenticationToken,org.apache.hadoop.io.Writable
public class CredentialProviderToken extends PasswordToken
AnAuthenticationTokenbacked by a Hadoop CredentialProvider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.core.client.security.tokens.AuthenticationToken
AuthenticationToken.AuthenticationTokenSerializer, AuthenticationToken.Properties, AuthenticationToken.TokenProperty
-
-
Field Summary
Fields Modifier and Type Field Description static StringCREDENTIAL_PROVIDERS_PROPERTYstatic StringNAME_PROPERTY
-
Constructor Summary
Constructors Constructor Description CredentialProviderToken()CredentialProviderToken(String name, String credentialProviders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialProviderTokenclone()StringgetCredentialProviders()StringgetName()Set<AuthenticationToken.TokenProperty>getProperties()voidinit(AuthenticationToken.Properties properties)protected voidsetWithCredentialProviders(String name, String credentialProviders)-
Methods inherited from class org.apache.accumulo.core.client.security.tokens.PasswordToken
destroy, equals, getPassword, hashCode, isDestroyed, readFields, setPassword, setPassword, write
-
-
-
-
Field Detail
-
NAME_PROPERTY
public static final String NAME_PROPERTY
- See Also:
- Constant Field Values
-
CREDENTIAL_PROVIDERS_PROPERTY
public static final String CREDENTIAL_PROVIDERS_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CredentialProviderToken
public CredentialProviderToken()
-
CredentialProviderToken
public CredentialProviderToken(String name, String credentialProviders) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setWithCredentialProviders
protected void setWithCredentialProviders(String name, String credentialProviders) throws IOException
- Throws:
IOException
-
getName
public String getName()
- Returns:
- Name used to extract Accumulo user password from CredentialProvider
- Since:
- 2.0.0
-
getCredentialProviders
public String getCredentialProviders()
- Returns:
- CSV list of CredentialProvider(s)
- Since:
- 2.0.0
-
init
public void init(AuthenticationToken.Properties properties)
- Specified by:
initin interfaceAuthenticationToken- Overrides:
initin classPasswordToken
-
getProperties
public Set<AuthenticationToken.TokenProperty> getProperties()
- Specified by:
getPropertiesin interfaceAuthenticationToken- Overrides:
getPropertiesin classPasswordToken
-
clone
public CredentialProviderToken clone()
- Specified by:
clonein interfaceAuthenticationToken- Overrides:
clonein classPasswordToken
-
-