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

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

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

origin: org.gatein.shindig/shindig-common

public boolean isExpired() {
 Long expiresAt = getExpiresAt();
 return (expiresAt == null) ? false : (System.currentTimeMillis() >expiresAt);
}
origin: com.lmco.shindig/shindig-common

public boolean isExpired() {
 Long expiresAt = getExpiresAt();
 return (expiresAt == null) ? false : (System.currentTimeMillis() >expiresAt);
}
origin: apache/shindig

public AbstractSecurityToken enforceNotExpired() throws BlobExpiredException {
 Long expiresAt = getExpiresAt();
 if (expiresAt != null) {
  long maxTime = expiresAt + CLOCK_SKEW_ALLOWANCE;
  long now = getTimeSource().currentTimeMillis() / 1000;
  if (!(now < maxTime)) {
   throw new BlobExpiredException(now, maxTime);
  }
 }
 return this;
}
origin: org.apache.shindig/shindig-common

public AbstractSecurityToken enforceNotExpired() throws BlobExpiredException {
 Long expiresAt = getExpiresAt();
 if (expiresAt != null) {
  long maxTime = expiresAt + CLOCK_SKEW_ALLOWANCE;
  long now = getTimeSource().currentTimeMillis() / 1000;
  if (!(now < maxTime)) {
   throw new BlobExpiredException(now, maxTime);
  }
 }
 return this;
}
origin: org.wso2.org.apache.shindig/shindig-common

public AbstractSecurityToken enforceNotExpired() throws BlobExpiredException {
 Long expiresAt = getExpiresAt();
 if (expiresAt != null) {
  long maxTime = expiresAt + CLOCK_SKEW_ALLOWANCE;
  long now = getTimeSource().currentTimeMillis() / 1000;
  if (!(now < maxTime)) {
   throw new BlobExpiredException(now, maxTime);
  }
 }
 return this;
}
origin: org.apache.shindig/shindig-common

 localToken.setExpires();
expires = localToken.getExpiresAt();
origin: org.wso2.org.apache.shindig/shindig-common

 localToken.setExpires();
expires = localToken.getExpiresAt();
origin: apache/shindig

 localToken.setExpires();
expires = localToken.getExpiresAt();
org.apache.shindig.authAbstractSecurityTokengetExpiresAt

Popular methods of AbstractSecurityToken

  • setActiveUrl
  • setAppId
  • setAppUrl
  • setContainer
  • setDomain
  • setExpiresAt
    Set the expiration time for this token.
  • 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

  • Start an intent from android
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • Top Sublime Text plugins
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