public class DelegationTokenConfig extends Object
SecurityOperations.getDelegationToken(DelegationTokenConfig)
Constructor and Description |
---|
DelegationTokenConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getTokenLifetime(TimeUnit unit)
The current token lifetime.
|
int |
hashCode() |
DelegationTokenConfig |
setTokenLifetime(long lifetime,
TimeUnit unit)
Requests a specific lifetime for the token that is different than the default system lifetime.
|
String |
toString() |
public DelegationTokenConfig setTokenLifetime(long lifetime, TimeUnit unit)
lifetime
- Token lifetimeunit
- Unit of time for the lifetimepublic long getTokenLifetime(TimeUnit unit)
unit
- The unit of time the lifetime should be returned inCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.