org.apache.accumulo.core.client.security.tokens
Class CredentialProviderToken

java.lang.Object
  extended by org.apache.accumulo.core.client.security.tokens.PasswordToken
      extended by org.apache.accumulo.core.client.security.tokens.CredentialProviderToken
All Implemented Interfaces:
Cloneable, Destroyable, AuthenticationToken, org.apache.hadoop.io.Writable

public class CredentialProviderToken
extends PasswordToken

An AuthenticationToken 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
static String CREDENTIAL_PROVIDERS_PROPERTY
           
static String NAME_PROPERTY
           
 
Constructor Summary
CredentialProviderToken()
           
CredentialProviderToken(String name, String credentialProviders)
           
 
Method Summary
 CredentialProviderToken clone()
           
 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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

init

public void init(AuthenticationToken.Properties properties)
Specified by:
init in interface AuthenticationToken
Overrides:
init in class PasswordToken

getProperties

public Set<AuthenticationToken.TokenProperty> getProperties()
Specified by:
getProperties in interface AuthenticationToken
Overrides:
getProperties in class PasswordToken

clone

public CredentialProviderToken clone()
Specified by:
clone in interface AuthenticationToken
Overrides:
clone in class PasswordToken


Copyright © 2015 Apache Accumulo Project. All rights reserved.