/** * Initialize internal data structures */ public void initialize() { serverManager.setSharedAssociations(new InMemoryServerAssociationStore()); serverManager.setPrivateAssociations(new InMemoryServerAssociationStore()); }
public synchronized Association load(String handle) { removeExpired(); return (Association) _handleMap.get(handle); }
/** * @see org.openid4java.server.ServerAssociationStore#generate(java.lang.String, int) */ public Association generate(String type, int expiryIn) throws AssociationException { Association association = store.generate(type, expiryIn); try { addToken(association.getHandle(), association); } catch (IOException e) { throw new AssociationException(e); } return association; }
/** * @see org.openid4java.server.ServerAssociationStore#generate(java.lang.String, int) */ public Association generate(String type, int expiryIn) throws AssociationException { Association association = store.generate(type, expiryIn); try { addToken(association.getHandle(), association); } catch (IOException e) { throw new AssociationException(e); } return association; }
public synchronized Association load(String handle) { removeExpired(); return (Association) _handleMap.get(handle); }
/** * Initialize internal data structures */ public void initialize() { serverManager.setSharedAssociations(new InMemoryServerAssociationStore()); serverManager.setPrivateAssociations(new InMemoryServerAssociationStore()); }
/** * @see org.openid4java.server.ServerAssociationStore#generate(java.lang.String, int) */ public Association generate(String type, int expiryIn) throws AssociationException { Association association = store.generate(type, expiryIn); try { addToken(association.getHandle(), association); } catch (IOException e) { throw new AssociationException(e); } return association; }
public synchronized Association load(String handle) { removeExpired(); return (Association) _handleMap.get(handle); }
/** * Initialize internal data structures */ public void initialize() { serverManager.setSharedAssociations(new InMemoryServerAssociationStore()); serverManager.setPrivateAssociations(new InMemoryServerAssociationStore()); }
public synchronized Association load(String handle) { removeExpired(); return (Association) _handleMap.get(handle); }
.setSharedAssociations(new InMemoryServerAssociationStore()); serverManager .setPrivateAssociations(new InMemoryServerAssociationStore()); String location = "https://" + request.getServerName(); if (request.getServerPort() != 443) {
public synchronized Association load(String handle) { removeExpired(); return (Association) _handleMap.get(handle); }
manager.setSharedAssociations(new InMemoryServerAssociationStore()); manager.setPrivateAssociations(new InMemoryServerAssociationStore()); manager.setOPEndpointUrl(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/simple-openid/provider.jsp");
public synchronized void remove(String handle) { if (DEBUG) _log.debug("Removing association, handle: " + handle); _handleMap.remove(handle); removeExpired(); }
manager.setSharedAssociations(new InMemoryServerAssociationStore()); manager.setPrivateAssociations(new InMemoryServerAssociationStore()); manager.setOPEndpointUrl(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/simple-openid/provider.jsp");
public synchronized void remove(String handle) { if (DEBUG) _log.debug("Removing association, handle: " + handle); _handleMap.remove(handle); removeExpired(); }
manager.setSharedAssociations(new InMemoryServerAssociationStore()); manager.setPrivateAssociations(new InMemoryServerAssociationStore()); manager.setOPEndpointUrl(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + "/simple-openid/provider.jsp");
public synchronized void remove(String handle) { if (DEBUG) _log.debug("Removing association, handle: " + handle); _handleMap.remove(handle); removeExpired(); }
@RefreshScope @Bean public ServerManager serverManager() { val manager = new ServerManager(); manager.setOPEndpointUrl(casProperties.getServer().getLoginUrl()); manager.setEnforceRpId(casProperties.getAuthn().getOpenid().isEnforceRpId()); manager.setSharedAssociations(new InMemoryServerAssociationStore()); LOGGER.info("Creating openid server manager with OP endpoint [{}]", casProperties.getServer().getLoginUrl()); return manager; }
public synchronized void remove(String handle) { if (DEBUG) { _log.debug("Removing association, handle: " + handle); } _handleMap.remove(handle); removeExpired(); }