/** * Serialize the delegation token config into the thrift variant * * @param config * The configuration */ public static TDelegationTokenConfig serialize(DelegationTokenConfig config) { TDelegationTokenConfig tconfig = new TDelegationTokenConfig(); tconfig.setLifetime(config.getTokenLifetime(TimeUnit.MILLISECONDS)); return tconfig; }
long requestedLifetime = cfg.getTokenLifetime(TimeUnit.MILLISECONDS); if (requestedLifetime > 0) { long requestedExpirationDate = identifier.getIssueDate() + requestedLifetime;
/** * Serialize the delegation token config into the thrift variant * * @param config * The configuration */ public static TDelegationTokenConfig serialize(DelegationTokenConfig config) { TDelegationTokenConfig tconfig = new TDelegationTokenConfig(); tconfig.setLifetime(config.getTokenLifetime(TimeUnit.MILLISECONDS)); return tconfig; }
long requestedLifetime = cfg.getTokenLifetime(TimeUnit.MILLISECONDS); if (0 < requestedLifetime) { long requestedExpirationDate = identifier.getIssueDate() + requestedLifetime;