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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
getTokenLifetime
(TimeUnit unit) The current token lifetime.int
hashCode()
setTokenLifetime
(long lifetime, TimeUnit unit) Requests a specific lifetime for the token that is different than the default system lifetime.toString()
-
Constructor Details
-
DelegationTokenConfig
public DelegationTokenConfig()
-
-
Method Details
-
setTokenLifetime
Requests a specific lifetime for the token that is different than the default system lifetime. The lifetime must not exceed the secret key lifetime configured on the servers.- Parameters:
lifetime
- Token lifetimeunit
- Unit of time for the lifetime- Returns:
- this
-
getTokenLifetime
The 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
-
hashCode
public int hashCode() -
toString
-