Examples of discover()


Examples of org.apache.oltu.oauth2.ext.dynamicreg.server.request.OAuthServerRegistrationRequest.discover()


        OAuthServerRegistrationRequest oauthRequest = null;
        try {
            oauthRequest = new OAuthServerRegistrationRequest(new JSONHttpServletRequestWrapper(request));
            oauthRequest.discover();
            oauthRequest.getClientName();
            oauthRequest.getClientUrl();
            oauthRequest.getClientDescription();
            oauthRequest.getRedirectURI();
View Full Code Here

Examples of org.ardverk.dht.DHT.discover()

     
      NodeConfig config = new NodeConfig();
      config.setLookupTimeout(20L, TimeUnit.SECONDS);
     
      DHTFuture<NodeEntity> future
        = first.discover(lookupId, config);
      NodeEntity entity = future.get();
      TestCase.assertEquals(lookupId, entity.getId());
     
      Contact[] contacts = entity.getContacts();
      Contact[] closest = entity.getClosest();
View Full Code Here

Examples of org.bitlet.weupnp.GatewayDiscover.discover()

    if (gatewayDevice != null) {
      gatewayDevice.deletePortMapping(this.externalPortTCP, "TCP");
      gatewayDevice.deletePortMapping(this.externalPortUDP, "UDP");
    }
    GatewayDiscover discover = new GatewayDiscover();
    discover.discover();
    gatewayDevice = discover.getValidGateway();

    if (gatewayDevice == null) {
      LOGGER.info("no UPNP device found");
      return false;
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

                   yadis.getEndpoints().size() > 0);

        // also run through Discovery.extractDiscoveryInformation()
        ConsumerManager manager = new ConsumerManager();

        List results = manager.discover("http://localhost:" +
            _servletPort + "/?headers=simplexrds&xrds=malformedxrds6");

        assertEquals("No discovery information should have been returned for an empty URI",
                     0, results.size());
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

    @Test(expected = OpenIDConsumerException.class)
    public void discoveryExceptionRaisesOpenIDException() throws Exception {
        ConsumerManager mgr = mock(ConsumerManager.class);
        OpenID4JavaConsumer consumer = new OpenID4JavaConsumer(mgr, new NullAxFetchListFactory());
        when(mgr.discover(anyString())).thenThrow(new DiscoveryException("msg"));
        consumer.beginConsumption(new MockHttpServletRequest(), "", "", "");
    }

    @Test
    public void messageOrConsumerAuthenticationExceptionRaisesOpenIDException() throws Exception {
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

      // (this is to preserve session state such as nonce values etc)
      ConsumerManager consumerManager = new ConsumerManager();
      InMemoryOpenIDCache.INSTANCE.putConsumerManager(sessionToken, consumerManager);

      // Perform discovery on the user-supplied identifier
      List discoveries = consumerManager.discover(identifier);

      // Attempt to associate with the OpenID provider
      // and retrieve one service endpoint for authentication
      DiscoveryInformation discovered = consumerManager.associate(discoveries);
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

  }

  private DiscoveryInformation performDiscovery(String openId) {
    try {
      ConsumerManager consumerManager = getConsumerManager();
      List<?> discoveries = consumerManager.discover(openId);
      return consumerManager.associate(discoveries);
    } catch (DiscoveryException e) {
      throw new WicketRuntimeException("discovery failed", e);
    }
  }
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

  }

  private DiscoveryInformation performDiscovery(String openId) {
    try {
      ConsumerManager consumerManager = getConsumerManager();
      List<?> discoveries = consumerManager.discover(openId);
      return consumerManager.associate(discoveries);
    } catch (DiscoveryException e) {
      throw new WicketRuntimeException("discovery failed", e);
    }
  }
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

  }

  private DiscoveryInformation performDiscovery(String openId) {
    try {
      ConsumerManager consumerManager = getConsumerManager();
      List<?> discoveries = consumerManager.discover(openId);
      return consumerManager.associate(discoveries);
    } catch (DiscoveryException e) {
      throw new WicketRuntimeException("discovery failed", e);
    }
  }
View Full Code Here

Examples of org.openid4java.consumer.ConsumerManager.discover()

  }

  private DiscoveryInformation performDiscovery(String openId) {
    try {
      ConsumerManager consumerManager = getConsumerManager();
      List<?> discoveries = consumerManager.discover(openId);
      return consumerManager.associate(discoveries);
    } catch (DiscoveryException e) {
      throw new WicketRuntimeException("discovery failed", e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.