public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) { String value = map.get(key); if (value != null) { token.setExpiresAt(Long.parseLong(value, 10)); } } },
public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) { String value = map.get(key); if (value != null) { token.setExpiresAt(Long.parseLong(value, 10)); } } },
public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) { String value = map.get(key); if (value != null) { token.setExpiresAt(Long.parseLong(value, 10)); } } },
public FakeGadgetToken setExpiresAt(Long expiresAt) { return (FakeGadgetToken)super.setExpiresAt(expiresAt); }
public FakeGadgetToken setExpiresAt(Long expiresAt) { return (FakeGadgetToken)super.setExpiresAt(expiresAt); }
public FakeGadgetToken setExpiresAt(Long expiresAt) { return (FakeGadgetToken)super.setExpiresAt(expiresAt); }
/** * Compute and set the expiration time for this token using the provided TTL. * * @param tokenTTL the time to live (in seconds) of the token * @return This security token. */ protected AbstractSecurityToken setExpires(int tokenTTL) { this.tokenTTL = tokenTTL; return setExpiresAt((getTimeSource().currentTimeMillis() / 1000) + getMaxTokenTTL()); }
/** * Compute and set the expiration time for this token using the provided TTL. * * @param tokenTTL the time to live (in seconds) of the token * @return This security token. */ protected AbstractSecurityToken setExpires(int tokenTTL) { this.tokenTTL = tokenTTL; return setExpiresAt((getTimeSource().currentTimeMillis() / 1000) + getMaxTokenTTL()); }
/** * Compute and set the expiration time for this token using the provided TTL. * * @param tokenTTL the time to live (in seconds) of the token * @return This security token. */ protected AbstractSecurityToken setExpires(int tokenTTL) { this.tokenTTL = tokenTTL; return setExpiresAt((getTimeSource().currentTimeMillis() / 1000) + getMaxTokenTTL()); }
public BasicSecurityToken(String owner, String viewer, String app, String domain, String appUrl, String moduleId, String container, String activeUrl, Long expiresAt) { setOwnerId(owner).setViewerId(viewer).setAppId(app).setDomain(domain).setAppUrl(appUrl); if (moduleId != null) setModuleId(Long.parseLong(moduleId)); setContainer(container).setActiveUrl(activeUrl).setExpiresAt(expiresAt); }
public BasicSecurityToken(String owner, String viewer, String app, String domain, String appUrl, String moduleId, String container, String activeUrl, Long expiresAt) { setOwnerId(owner).setViewerId(viewer).setAppId(app).setDomain(domain).setAppUrl(appUrl); if (moduleId != null) setModuleId(Long.parseLong(moduleId)); setContainer(container).setActiveUrl(activeUrl).setExpiresAt(expiresAt); }
public BasicSecurityToken(String owner, String viewer, String app, String domain, String appUrl, String moduleId, String container, String activeUrl, Long expiresAt) { setOwnerId(owner).setViewerId(viewer).setAppId(app).setDomain(domain).setAppUrl(appUrl); if (moduleId != null) setModuleId(Long.parseLong(moduleId)); setContainer(container).setActiveUrl(activeUrl).setExpiresAt(expiresAt); }
public static BlobCrypterSecurityToken fromToken(SecurityToken token) { BlobCrypterSecurityToken interpretedToken = new BlobCrypterSecurityToken(token.getContainer(), token.getDomain(), token.getActiveUrl(), null); interpretedToken .setAppId(token.getAppId()) .setAppUrl(token.getAppUrl()) .setExpiresAt(token.getExpiresAt()) .setModuleId(token.getModuleId()) .setOwnerId(token.getOwnerId()) .setTrustedJson(token.getTrustedJson()) .setViewerId(token.getViewerId()); return interpretedToken; } }
public static BlobCrypterSecurityToken fromToken(SecurityToken token) { BlobCrypterSecurityToken interpretedToken = new BlobCrypterSecurityToken(token.getContainer(), token.getDomain(), token.getActiveUrl(), null); interpretedToken .setAppId(token.getAppId()) .setAppUrl(token.getAppUrl()) .setExpiresAt(token.getExpiresAt()) .setModuleId(token.getModuleId()) .setOwnerId(token.getOwnerId()) .setTrustedJson(token.getTrustedJson()) .setViewerId(token.getViewerId()); return interpretedToken; } }
public static BlobCrypterSecurityToken fromToken(SecurityToken token) { BlobCrypterSecurityToken interpretedToken = new BlobCrypterSecurityToken(token.getContainer(), token.getDomain(), token.getActiveUrl(), null); interpretedToken .setAppId(token.getAppId()) .setAppUrl(token.getAppUrl()) .setExpiresAt(token.getExpiresAt()) .setModuleId(token.getModuleId()) .setOwnerId(token.getOwnerId()) .setTrustedJson(token.getTrustedJson()) .setViewerId(token.getViewerId()); return interpretedToken; } }