org.openid4java.association.Association.hasExpired()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(264)

本文整理了Java中org.openid4java.association.Association.hasExpired()方法的一些代码示例,展示了Association.hasExpired()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.hasExpired()方法的具体详情如下:
包路径:org.openid4java.association.Association
类名称:Association
方法名:hasExpired

Association.hasExpired介绍

暂无

代码示例

代码示例来源: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);

相关文章