Package io.jans.as.client
Class JwkResponse
- java.lang.Object
-
- io.jans.as.client.BaseResponse
-
- io.jans.as.client.JwkResponse
-
public class JwkResponse extends BaseResponse
Represents a JSON Web Key (JWK) received from the authorization server.- Version:
- February 12, 2019
- Author:
- Javier Rojas Blum
-
-
Field Summary
-
Fields inherited from class io.jans.as.client.BaseResponse
entity, headers, location, status
-
-
Constructor Summary
Constructors Constructor Description JwkResponse(int status)
Constructs a JWK response.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description io.jans.as.model.jwk.JSONWebKeySet
getJwks()
String
getKeyId(io.jans.as.model.jwk.Algorithm algorithm)
List<io.jans.as.model.jwk.JSONWebKey>
getKeys(io.jans.as.model.jwk.Algorithm algorithm)
io.jans.as.model.jwk.JSONWebKey
getKeyValue(String keyId)
Deprecated.io.jans.as.model.crypto.PublicKey
getPublicKey(String keyId)
Deprecated.void
setJwks(io.jans.as.model.jwk.JSONWebKeySet jwks)
-
Methods inherited from class io.jans.as.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
getJwks
public io.jans.as.model.jwk.JSONWebKeySet getJwks()
-
setJwks
public void setJwks(io.jans.as.model.jwk.JSONWebKeySet jwks)
-
getKeyValue
@Deprecated public io.jans.as.model.jwk.JSONWebKey getKeyValue(String keyId)
Deprecated.Search and returns aJSONWebKey
given itskeyId
.- Parameters:
keyId
- The key id.- Returns:
- The JSONWebKey if found, otherwise
null
.
-
getPublicKey
@Deprecated public io.jans.as.model.crypto.PublicKey getPublicKey(String keyId)
Deprecated.
-
getKeys
public List<io.jans.as.model.jwk.JSONWebKey> getKeys(io.jans.as.model.jwk.Algorithm algorithm)
-
getKeyId
public String getKeyId(io.jans.as.model.jwk.Algorithm algorithm)
-
-