Class DelegationTokenConfig
java.lang.Object
org.apache.accumulo.core.client.admin.DelegationTokenConfig
Configuration options for obtaining a delegation token created by
 
SecurityOperations.getDelegationToken(DelegationTokenConfig)- Since:
- 1.7.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanlonggetTokenLifetime(TimeUnit unit) The current token lifetime.inthashCode()setTokenLifetime(long lifetime, TimeUnit unit) Requests a specific lifetime for the token that is different from the default system lifetime.toString()
- 
Constructor Details- 
DelegationTokenConfigpublic DelegationTokenConfig()
 
- 
- 
Method Details- 
setTokenLifetimeRequests a specific lifetime for the token that is different from the default system lifetime. The lifetime must not exceed the secret key lifetime configured on the servers.- Parameters:
- lifetime- Token lifetime
- unit- Unit of time for the lifetime
- Returns:
- this
 
- 
getTokenLifetimeThe current token lifetime. A value of zero corresponds to using the system configured lifetime.- Parameters:
- unit- The unit of time the lifetime should be returned in
- Returns:
- Token lifetime in requested unit of time
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-