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; }
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; }
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; }
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; }
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; }
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); } }
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; }
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; }
/** * 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; }
/** * 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; }
_log.debug("Creating private association for opUrl " + opUrl); privateAssoc = Association.generate( getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire); _privateAssociations.save(opUrl, privateAssoc);
privateAssoc = Association.generate( getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire); _privateAssociations.save( opUrl, privateAssoc );
privateAssoc = Association.generate( getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire); _privateAssociations.save( opUrl, privateAssoc );
Association.generate(type, handle, expiryIn);
privateAssoc = Association.generate( getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire); _privateAssociations.save( opUrl, privateAssoc );
Association.generate(type, handle, expiryIn);
Association.generate(type, handle, expiryIn);
privateAssoc = Association.generate( getPrefAssocSessEnc().getAssociationType(), "", _failedAssocExpire); _privateAssociations.save( opUrl, privateAssoc );
Association.generate(type, handle, expiryIn);
Association.generate(type, handle, expiryIn);