public BasicSecurityToken(String owner, String viewer, String app, String domain, String appUrl, String moduleId, String container, String activeUrl, Long expiresAt) throws BlobCrypterException { tokenData = Maps.newHashMapWithExpectedSize(7); putNullSafe(OWNER_KEY, owner); putNullSafe(VIEWER_KEY, viewer); putNullSafe(APP_KEY, app); putNullSafe(DOMAIN_KEY, domain); putNullSafe(APPURL_KEY, appUrl); putNullSafe(MODULE_KEY, moduleId); putNullSafe(CONTAINER_KEY, container); if (expiresAt != null) putNullSafe(EXPIRES_KEY, expiresAt.toString()); token = crypter.wrap(tokenData); this.activeUrl = activeUrl; }
public BasicSecurityToken(String owner, String viewer, String app, String domain, String appUrl, String moduleId, String container, String activeUrl, Long expiresAt) throws BlobCrypterException { tokenData = Maps.newHashMapWithExpectedSize(7); putNullSafe(OWNER_KEY, owner); putNullSafe(VIEWER_KEY, viewer); putNullSafe(APP_KEY, app); putNullSafe(DOMAIN_KEY, domain); putNullSafe(APPURL_KEY, appUrl); putNullSafe(MODULE_KEY, moduleId); putNullSafe(CONTAINER_KEY, container); if (expiresAt != null) putNullSafe(EXPIRES_KEY, expiresAt.toString()); token = crypter.wrap(tokenData); this.activeUrl = activeUrl; }