Class JwkClient


public class JwkClient extends BaseClient<JwkRequest,JwkResponse>
Encapsulates functionality to make JWK request calls to an authorization server via REST Services.
Version:
December 26, 2016
Author:
Javier Rojas Blum
  • Constructor Details

    • JwkClient

      public JwkClient(String url)
      Constructs a JSON Web Key (JWK) client by providing a REST url where the validate token service is located.
      Parameters:
      url - The REST Service location.
  • Method Details

    • getHttpMethod

      public String getHttpMethod()
      Specified by:
      getHttpMethod in class BaseClient<JwkRequest,JwkResponse>
    • exec

      public JwkResponse exec()
      Executes the call to the REST Service requesting the JWK and processes the response.
      Returns:
      The service response.
    • getRSAPublicKey

      public static io.jans.as.model.crypto.signature.RSAPublicKey getRSAPublicKey(String jwkSetUri, String keyId)
    • getRSAPublicKey

      public static io.jans.as.model.crypto.signature.RSAPublicKey getRSAPublicKey(String jwkSetUri, String keyId, org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine)
    • getECDSAPublicKey

      public static io.jans.as.model.crypto.signature.ECDSAPublicKey getECDSAPublicKey(String jwkSetUrl, String keyId)
    • getECDSAPublicKey

      public static io.jans.as.model.crypto.signature.ECDSAPublicKey getECDSAPublicKey(String jwkSetUrl, String keyId, org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine)