Package org.gluu.oxauth.client
Class JwkResponse
- java.lang.Object
-
- org.gluu.oxauth.client.BaseResponse
-
- org.gluu.oxauth.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 org.gluu.oxauth.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 JSONWebKeySetgetJwks()java.lang.StringgetKeyId(Algorithm algorithm)java.util.List<JSONWebKey>getKeys(Algorithm algorithm)JSONWebKeygetKeyValue(java.lang.String keyId)Deprecated.PublicKeygetPublicKey(java.lang.String keyId)Deprecated.voidsetJwks(JSONWebKeySet jwks)-
Methods inherited from class org.gluu.oxauth.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
getJwks
public JSONWebKeySet getJwks()
-
setJwks
public void setJwks(JSONWebKeySet jwks)
-
getKeyValue
@Deprecated public JSONWebKey getKeyValue(java.lang.String keyId)
Deprecated.Search and returns aJSONWebKeygiven itskeyId.- Parameters:
keyId- The key id.- Returns:
- The JSONWebKey if found, otherwise
null.
-
getPublicKey
@Deprecated public PublicKey getPublicKey(java.lang.String keyId)
Deprecated.
-
getKeys
public java.util.List<JSONWebKey> getKeys(Algorithm algorithm)
-
getKeyId
public java.lang.String getKeyId(Algorithm algorithm)
-
-