Package io.jans.as.client
Class JwkClient
Encapsulates functionality to make JWK request calls to an authorization
server via REST Services.
- Version:
- December 26, 2016
- Author:
- Javier Rojas Blum
-
Field Summary
Fields inherited from class io.jans.as.client.BaseClient
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexec()
Executes the call to the REST Service requesting the JWK and processes the response.static io.jans.as.model.crypto.signature.ECDSAPublicKey
getECDSAPublicKey
(String jwkSetUrl, String keyId) static io.jans.as.model.crypto.signature.ECDSAPublicKey
getECDSAPublicKey
(String jwkSetUrl, String keyId, org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine) static io.jans.as.model.crypto.signature.RSAPublicKey
getRSAPublicKey
(String jwkSetUri, String keyId) static io.jans.as.model.crypto.signature.RSAPublicKey
getRSAPublicKey
(String jwkSetUri, String keyId, org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine) Methods inherited from class io.jans.as.client.BaseClient
addReqParam, addReqParam, applyCookies, closeConnection, getCookies, getExecutor, getHeaders, getRequest, getRequestAsString, getResponse, getResponseAsString, getUrl, initClient, prepareAuthorizatedClientRequest, setExecutor, setRequest, setResponse, setUrl
-
Constructor Details
-
JwkClient
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
- Specified by:
getHttpMethod
in classBaseClient<JwkRequest,
JwkResponse>
-
exec
Executes the call to the REST Service requesting the JWK and processes the response.- Returns:
- The service response.
-
getRSAPublicKey
-
getRSAPublicKey
-
getECDSAPublicKey
-
getECDSAPublicKey
-