Tabnine Logo
Association.hasExpired
Code IndexAdd Tabnine to your IDE (free)

How to use
hasExpired
method
in
org.openid4java.association.Association

Best Java code snippets using org.openid4java.association.Association.hasExpired (Showing top 16 results out of 315)

origin: org.apereo.cas/cas-server-support-openid

  /**
   * Is association valid.
   *
   * @param association the association
   * @return true/false
   */
  protected boolean isAssociationValid(final Association association) {
    return association != null && !association.hasExpired();
  }
}
origin: org.jasig.cas/cas-server-support-openid

  /**
   * Is association valid.
   *
   * @param association the association
   * @return the boolean
   */
  protected boolean isAssociationValid(final Association association) {
    return association != null && !association.hasExpired();
  }
}
origin: org.openid4java/openid4java-nodeps

private synchronized void removeExpired()
{
  Set handleToRemove = new HashSet();
  Iterator handles = _handleMap.keySet().iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    Association association = (Association) _handleMap.get(handle);
    if (association.hasExpired())
      handleToRemove.add(handle);
  }
  handles = handleToRemove.iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    if (DEBUG) _log.debug("Removing expired association, handle: " + handle);
    _handleMap.remove(handle);
  }
}
origin: org.openid4java/openid4java

private synchronized void removeExpired()
{
  Set handleToRemove = new HashSet();
  Iterator handles = _handleMap.keySet().iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    Association association = (Association) _handleMap.get(handle);
    if (association.hasExpired())
      handleToRemove.add(handle);
  }
  handles = handleToRemove.iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    if (DEBUG) _log.debug("Removing expired association, handle: " + handle);
    _handleMap.remove(handle);
  }
}
origin: com.cloudbees/openid4java-shaded

private synchronized void removeExpired()
{
  Set handleToRemove = new HashSet();
  Iterator handles = _handleMap.keySet().iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    Association association = (Association) _handleMap.get(handle);
    if (association.hasExpired())
      handleToRemove.add(handle);
  }
  handles = handleToRemove.iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    if (DEBUG) _log.debug("Removing expired association, handle: " + handle);
    _handleMap.remove(handle);
  }
}
origin: org.wso2.org.openid4java/openid4java-nodeps

private synchronized void removeExpired() {
  Set handleToRemove = new HashSet();
  Iterator handles = _handleMap.keySet().iterator();
  while (handles.hasNext()) {
    String handle = (String) handles.next();
    Association association = (Association) _handleMap.get(handle);
    if (association.hasExpired()) {
      handleToRemove.add(handle);
    }
  }
  handles = handleToRemove.iterator();
  while (handles.hasNext()) {
    String handle = (String) handles.next();
    if (DEBUG) {
      _log.debug("Removing expired association, handle: " + handle);
    }
    _handleMap.remove(handle);
  }
}
origin: jbufu/openid4java

private synchronized void removeExpired()
{
  Set handleToRemove = new HashSet();
  Iterator handles = _handleMap.keySet().iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    Association association = (Association) _handleMap.get(handle);
    if (association.hasExpired())
      handleToRemove.add(handle);
  }
  handles = handleToRemove.iterator();
  while (handles.hasNext())
  {
    String handle = (String) handles.next();
    if (DEBUG) _log.debug("Removing expired association, handle: " + handle);
    _handleMap.remove(handle);
  }
}
origin: org.wso2.org.openid4java/openid4java-nodeps

if (association.hasExpired()) {
  handleToRemove.add(handle);
origin: org.openid4java/openid4java-nodeps

if (association.hasExpired())
origin: com.cloudbees/openid4java-shaded

if (association.hasExpired())
origin: org.openid4java/openid4java

if (association.hasExpired())
origin: jbufu/openid4java

if (association.hasExpired())
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

public Association load(String handle) {
  // get association using map
  Association association = OpenIDAssociationReplicationManager.getPersistenceManager().getAssociation(handle);
  // no association found for the given handle
  if (association == null) {
    log.warn("Association " + handle + " not found in the map.");
    return null;
  }
  // if the association is expired
  if (association.hasExpired()) {
    log.warn("Association is expired for handle " + handle);
    remove(handle); // remove from map
    return null;
  }
  return association;
}
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

public Association load(String handle) {
  // get association using map
  Association association = OpenIDAssociationReplicationManager.getPersistenceManager().getAssociation(handle);
  // no association found for the given handle
  if (association == null) {
    log.warn("Association " + handle + " not found in the map.");
    return null;
  }
  // if the association is expired
  if (association.hasExpired()) {
    log.warn("Association is expired for handle " + handle);
    remove(handle); // remove from map
    return null;
  }
  return association;
}
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

if (association.hasExpired()) {
  log.warn("Association is expired for handle " + handle);
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

if (association.hasExpired()) {
  log.warn("Association is expired for handle " + handle);
org.openid4java.associationAssociationhasExpired

Popular methods of Association

  • getHandle
  • createHmacSha1
  • createHmacSha256
  • generate
  • getExpiry
  • getMacKey
  • getType
  • sign
  • verifySignature
  • <init>
  • createMacKey
  • generateHmacSha1
  • createMacKey,
  • generateHmacSha1,
  • generateHmacSha256,
  • generateMacKey,
  • generateMacSha1Key,
  • generateMacSha256Key,
  • getFailedAssociation,
  • isHmacSha256Supported,
  • isHmacSupported

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • From CI to AI: The AI layer in your organization
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