Package com.nimbusds.openid.connect.sdk.util

Examples of com.nimbusds.openid.connect.sdk.util.Resource


    if (jwtRetriever == null) {

      throw new ResolveException("OpenID Connect request object cannot be resolved: No JWT retriever is configured");
    }

    Resource resource;

    try {
      resource = jwtRetriever.retrieveResource(url);
     
    } catch (IOException e) {

      throw new ResolveException("Couldn't retrieve OpenID Connect request object: " + e.getMessage(), e);
    }

    try {
      return JWTParser.parse(resource.getContent());
   
    } catch (java.text.ParseException e) {

      throw new ResolveException("Couldn't parse OpenID Connect request object: " +  e.getMessage(), e);
    }
View Full Code Here

TOP

Related Classes of com.nimbusds.openid.connect.sdk.util.Resource

Copyright © 2018 www.massapicom. 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.