Examples of ClientId


Examples of com.nimbusds.oauth2.sdk.id.ClientID

    if (clientIDString == null)
      return null;

    else
      return new ClientID(clientIDString);
  }
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

    try {
      String decodedClientID = URLDecoder.decode(credentials[0], UTF8_CHARSET.name());
      String decodedSecret = URLDecoder.decode(credentials[1], UTF8_CHARSET.name());

      return new ClientSecretBasic(new ClientID(decodedClientID), new Secret(decodedSecret));
     
    } catch (UnsupportedEncodingException e) {
   
      throw new ParseException(e.getMessage(), e);
    }
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

  public void testWithAccessTokenAndClientAuth()
    throws Exception {

    URI endpointURI = new URI("https://c2id.com/token/revoke");
    Token token = new BearerAccessToken();
    ClientAuthentication clientAuth = new ClientSecretBasic(new ClientID("123"), new Secret("secret"));

    TokenRevocationRequest request = new TokenRevocationRequest(endpointURI, clientAuth, token);
    assertEquals(endpointURI, request.getEndpointURI());
    assertEquals(clientAuth, request.getClientAuthentication());
    assertEquals(token, request.getToken());
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

  public void testWithRefreshTokenAndClientAuth()
    throws Exception {

    URI endpointURI = new URI("https://c2id.com/token/revoke");
    Token token = new RefreshToken();
    ClientAuthentication clientAuth = new ClientSecretBasic(new ClientID("123"), new Secret("secret"));

    TokenRevocationRequest request = new TokenRevocationRequest(endpointURI, clientAuth, token);
    assertEquals(endpointURI, request.getEndpointURI());
    assertEquals(clientAuth, request.getClientAuthentication());
    assertEquals(token, request.getToken());
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

   *                        client information instance.
   */
  public static ClientInformation parse(final JSONObject jsonObject)
    throws ParseException {

    ClientID id = new ClientID(JSONObjectUtils.getString(jsonObject, "client_id"));

    Date issueDate = null;

    if (jsonObject.containsKey("client_id_issued_at")) {

View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      ResponseType.parse("code"),
      Scope.parse("openid email"),
      new ClientID("123"),
      new URI("https://client.com/cb"),
      new State(),
      new Nonce());

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      ResponseType.parse("id_token"),
      Scope.parse("openid email"),
      new ClientID("123"),
      new URI("https://client.com/cb"),
      new State(),
      new Nonce());

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

    cr.addIDTokenClaim(new ClaimsRequest.Entry("email", ClaimRequirement.ESSENTIAL));

    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "email"),
      new ClientID("123"),
      new URI("https://client.com/cb")).claims(cr).build();

    ClaimsRequest claimsRequest = ClaimsRequest.resolve(authRequest);

    Set<String> idTokenClaims = claimsRequest.getIDTokenClaimNames(false);
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

   
    AuthenticationRequest authRequest = new AuthenticationRequest(
      new URI("https://c2id.com/login"),
      new ResponseType("code"),
      Scope.parse("openid profile"),
      new ClientID("abc"),
      new URI("https://example.com/in"),
      new State(),
      new Nonce());
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
View Full Code Here

Examples of com.nimbusds.oauth2.sdk.id.ClientID

    acrValues.add(new ACR("2"));
   
    AuthenticationRequest authRequest = new AuthenticationRequest.Builder(
      new ResponseType("code"),
      new Scope("openid", "profile"),
      new ClientID("123"),
      new URI("https://example.com/in")).
      acrValues(acrValues).
      build();
   
    ACRRequest acrRequest = ACRRequest.resolve(authRequest);
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.