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 Detail

      • JwkClient

        public JwkClient​(java.lang.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 Detail

      • 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​(java.lang.String jwkSetUri,
                                                                                     java.lang.String keyId)
      • getRSAPublicKey

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

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

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