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
AnAuthenticationToken
backed 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 String
CREDENTIAL_PROVIDERS_PROPERTY
static String
NAME_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 CredentialProviderToken
clone()
String
getCredentialProviders()
String
getName()
Set<AuthenticationToken.TokenProperty>
getProperties()
void
init(AuthenticationToken.Properties properties)
protected void
setWithCredentialProviders(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:
init
in interfaceAuthenticationToken
- Overrides:
init
in classPasswordToken
-
getProperties
public Set<AuthenticationToken.TokenProperty> getProperties()
- Specified by:
getProperties
in interfaceAuthenticationToken
- Overrides:
getProperties
in classPasswordToken
-
clone
public CredentialProviderToken clone()
- Specified by:
clone
in interfaceAuthenticationToken
- Overrides:
clone
in classPasswordToken
-
-