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

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

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

origin: org.openid4java/openid4java-nodeps

public synchronized Association generate(String type, int expiryIn)
    throws AssociationException
{
  removeExpired();
  String handle = _timestamp + "-" + _counter++;
  Association association = Association.generate(type, handle, expiryIn);
  _handleMap.put(handle, association);
  if (DEBUG) _log.debug("Generated association, handle: " + handle +
             " type: " + type +
             " expires in: " + expiryIn + " seconds.");
  return association;
}
origin: org.openid4java/openid4java

public synchronized Association generate(String type, int expiryIn)
    throws AssociationException
{
  removeExpired();
  String handle = _timestamp + "-" + _counter++;
  Association association = Association.generate(type, handle, expiryIn);
  _handleMap.put(handle, association);
  if (DEBUG) _log.debug("Generated association, handle: " + handle +
             " type: " + type +
             " expires in: " + expiryIn + " seconds.");
  return association;
}
origin: jbufu/openid4java

public synchronized Association generate(String type, int expiryIn)
    throws AssociationException
{
  removeExpired();
  String handle = _timestamp + "-" + _counter++;
  Association association = Association.generate(type, handle, expiryIn);
  _handleMap.put(handle, association);
  if (DEBUG) _log.debug("Generated association, handle: " + handle +
             " type: " + type +
             " expires in: " + expiryIn + " seconds.");
  return association;
}
origin: com.cloudbees/openid4java-shaded

public synchronized Association generate(String type, int expiryIn)
    throws AssociationException
{
  removeExpired();
  String handle = _timestamp + "-" + _counter++;
  Association association = Association.generate(type, handle, expiryIn);
  _handleMap.put(handle, association);
  if (DEBUG) _log.debug("Generated association, handle: " + handle +
             " type: " + type +
             " expires in: " + expiryIn + " seconds.");
  return association;
}
origin: org.wso2.org.openid4java/openid4java-nodeps

public synchronized Association generate(String type, int expiryIn)
    throws AssociationException {
  removeExpired();
  String handle = _timestamp + "-" + _counter++;
  Association association = Association.generate(type, handle, expiryIn);
  _handleMap.put(handle, association);
  if (DEBUG) {
    _log.debug("Generated association, handle: " + handle +
          " type: " + type +
          " expires in: " + expiryIn + " seconds.");
  }
  return association;
}
origin: be.fedict.eid-idp/eid-idp-protocol-openid

public Association generate(String type, int expiryIn)
    throws AssociationException {
  String tmpHandle = "";
  Association tmpAssociation = Association.generate(type, tmpHandle,
      expiryIn);
  try {
    return setHandle(tmpAssociation);
  } catch (Exception e) {
    throw new AssociationException("error creating association: "
        + e.getMessage(), e);
  }
}
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

public Association generate(String type, int expiryIn) throws AssociationException {
  String handle = storeId + timestamp + "-" + getCounter();
  Association association = Association.generate(type, handle, expiryIn);
  // replicating association using cluster messages
  if(log.isDebugEnabled()) {
    log.debug("Storing association " + association.getHandle() + " in the map.");
  }
  OpenIDAssociationReplicationManager.getPersistenceManager().addAssociation(association);
  return association;
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

public Association generate(String type, int expiryIn) throws AssociationException {
  String handle = storeId + timestamp + "-" + getCounter();
  Association association = Association.generate(type, handle, expiryIn);
  // replicating association using cluster messages
  if(log.isDebugEnabled()) {
    log.debug("Storing association " + association.getHandle() + " in the map.");
  }
  OpenIDAssociationReplicationManager.getPersistenceManager().addAssociation(association);
  return association;
}
origin: org.wso2.carbon.identity.inbound.auth.openid/org.wso2.carbon.identity.provider

/**
 * Super will generate the association and it will be persisted by the DAO.
 *
 * @param type     association type defined in the OpenID 2.0
 * @param expiryIn date
 * @return <code>Association</code>
 */
@Override
public Association generate(String type, int expiryIn)
    throws AssociationException {
  String handle = storeId + timestamp + "-" + getCounter();
  final Association association = Association.generate(type, handle, expiryIn);
  cache.addToCache(association);
  // Asynchronous write to database
  Thread thread = new Thread() {
    @Override
    public void run() {
      if(log.isDebugEnabled()) {
        log.debug("Storing association " + association.getHandle() + " in the database.");
      }
      dao.storeAssociation(association);
    }
  };
  thread.start();
  return association;
}
origin: org.wso2.carbon.identity/org.wso2.carbon.identity.provider

/**
 * Super will generate the association and it will be persisted by the DAO.
 *
 * @param type     association type defined in the OpenID 2.0
 * @param expiryIn date
 * @return <code>Association</code>
 */
@Override
public Association generate(String type, int expiryIn)
    throws AssociationException {
  String handle = storeId + timestamp + "-" + getCounter();
  final Association association = Association.generate(type, handle, expiryIn);
  cache.addToCache(association);
  // Asynchronous write to database
  Thread thread = new Thread() {
    @Override
    public void run() {
      if(log.isDebugEnabled()) {
        log.debug("Storing association " + association.getHandle() + " in the database.");
      }
      dao.storeAssociation(association);
    }
  };
  thread.start();
  return association;
}
origin: org.wso2.org.openid4java/openid4java-nodeps

  _log.debug("Creating private association for opUrl " + opUrl);
privateAssoc = Association.generate(
    getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire);
_privateAssociations.save(opUrl, privateAssoc);
origin: org.openid4java/openid4java

privateAssoc = Association.generate(
   getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire);
_privateAssociations.save( opUrl, privateAssoc );
origin: org.openid4java/openid4java-nodeps

privateAssoc = Association.generate(
   getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire);
_privateAssociations.save( opUrl, privateAssoc );
origin: org.wso2.org.openid4java/openid4java-nodeps

Association.generate(type, handle, expiryIn);
origin: jbufu/openid4java

privateAssoc = Association.generate(
   getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire);
_privateAssociations.save( opUrl, privateAssoc );
origin: org.openid4java/openid4java

Association.generate(type, handle, expiryIn);
origin: com.cloudbees/openid4java-shaded

Association.generate(type, handle, expiryIn);
origin: com.cloudbees/openid4java-shaded

privateAssoc = Association.generate(
   getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire);
_privateAssociations.save( opUrl, privateAssoc );
origin: org.openid4java/openid4java-nodeps

Association.generate(type, handle, expiryIn);
origin: jbufu/openid4java

Association.generate(type, handle, expiryIn);
org.openid4java.associationAssociationgenerate

Popular methods of Association

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

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (Timer)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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