Tabnine Logo
AbstractSecurityToken.setExpiresAt
Code IndexAdd Tabnine to your IDE (free)

How to use
setExpiresAt
method
in
org.apache.shindig.auth.AbstractSecurityToken

Best Java code snippets using org.apache.shindig.auth.AbstractSecurityToken.setExpiresAt (Showing top 15 results out of 315)

origin: apache/shindig

 public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) {
  String value = map.get(key);
  if (value != null) {
   token.setExpiresAt(Long.parseLong(value, 10));
  }
 }
},
origin: org.apache.shindig/shindig-common

 public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) {
  String value = map.get(key);
  if (value != null) {
   token.setExpiresAt(Long.parseLong(value, 10));
  }
 }
},
origin: org.wso2.org.apache.shindig/shindig-common

 public void loadFromMap(AbstractSecurityToken token, Map<String, String> map) {
  String value = map.get(key);
  if (value != null) {
   token.setExpiresAt(Long.parseLong(value, 10));
  }
 }
},
origin: org.wso2.org.apache.shindig/shindig-common

public FakeGadgetToken setExpiresAt(Long expiresAt) {
 return (FakeGadgetToken)super.setExpiresAt(expiresAt);
}
origin: org.apache.shindig/shindig-common

public FakeGadgetToken setExpiresAt(Long expiresAt) {
 return (FakeGadgetToken)super.setExpiresAt(expiresAt);
}
origin: apache/shindig

public FakeGadgetToken setExpiresAt(Long expiresAt) {
 return (FakeGadgetToken)super.setExpiresAt(expiresAt);
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * 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());
}
origin: org.apache.shindig/shindig-common

/**
 * 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());
}
origin: apache/shindig

/**
 * 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());
}
origin: org.apache.shindig/shindig-common

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);
}
origin: org.wso2.org.apache.shindig/shindig-common

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);
}
origin: apache/shindig

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);
}
origin: org.apache.shindig/shindig-common

 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;
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

 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;
 }
}
origin: apache/shindig

 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;
 }
}
org.apache.shindig.authAbstractSecurityTokensetExpiresAt

Javadoc

Set the expiration time for this token.

Popular methods of AbstractSecurityToken

  • getExpiresAt
  • setActiveUrl
  • setAppId
  • setAppUrl
  • setContainer
  • setDomain
  • setModuleId
  • setOwnerId
  • setTrustedJson
  • setViewerId
  • toMap
    A Map representation of this SecurityToken. Implementors that handle additional keys not contained i
  • enforceNotExpired
  • toMap,
  • enforceNotExpired,
  • getContainer,
  • getMapKeys,
  • getMaxTokenTTL,
  • getTimeSource,
  • setExpires,
  • loadFromMap,
  • setTimeSource

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Collectors (java.util.stream)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now