Top Fields Constructors Methods
org.keycloak.util

public Class JWKSUtils

extends Object
Class Inheritance
Imports
org.jboss.logging.Logger, org.keycloak.crypto.KeyUse, .KeyWrapper, .PublicKeysWrapper, .KeyType, org.keycloak.common.util.Base64Url, org.keycloak.jose.jwk.ECPublicJWK, .JSONWebKeySet, .JWK, .JWKParser, .OKPPublicJWK, .RSAPublicJWK, org.keycloak.jose.jws.crypto.HashUtils, java.io.IOException, java.security.PublicKey, java.util.ArrayList, .HashMap, .List, .Map, .TreeMap, java.util.stream.Collectors

Author
Marek Posolda

Field Summary

Modifier and TypeField and Description
private static final String
private static final Map<String, String[]>
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
public static String
public static JWK
getKeyForUse(JSONWebKeySet keySet, JWK.Use requestedUse)

public static Map<String, PublicKey>
private static KeyUse
getKeyUse(String keyUse)

public static KeyWrapper
public static PublicKeysWrapper
getKeyWrappersForUse(JSONWebKeySet keySet, JWK.Use requestedUse)

public static PublicKeysWrapper
getKeyWrappersForUse(JSONWebKeySet keySet, JWK.Use requestedUse, boolean useRequestedUseWhenNull)

private static KeyWrapper
wrap(JWK jwk, JWKParser parser)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

JWK_THUMBPRINT_DEFAULT_HASH_ALGORITHMback to summary
private static final String JWK_THUMBPRINT_DEFAULT_HASH_ALGORITHM
JWK_THUMBPRINT_REQUIRED_MEMBERSback to summary
private static final Map<String, String[]> JWK_THUMBPRINT_REQUIRED_MEMBERS
loggerback to summary
private static final Logger logger

Constructor Detail

JWKSUtilsback to summary
public JWKSUtils()

Method Detail

computeThumbprintback to summary
public static String computeThumbprint(JWK key)
computeThumbprintback to summary
public static String computeThumbprint(JWK key, String hashAlg)
getKeyForUseback to summary
public static JWK getKeyForUse(JSONWebKeySet keySet, JWK.Use requestedUse)
getKeysForUseback to summary
public static Map<String, PublicKey> getKeysForUse(JSONWebKeySet keySet, JWK.Use requestedUse)
Annotations
@Deprecated
getKeyUseback to summary
private static KeyUse getKeyUse(String keyUse)
getKeyWrapperback to summary
public static KeyWrapper getKeyWrapper(JWK jwk)
getKeyWrappersForUseback to summary
public static PublicKeysWrapper getKeyWrappersForUse(JSONWebKeySet keySet, JWK.Use requestedUse)
getKeyWrappersForUseback to summary
public static PublicKeysWrapper getKeyWrappersForUse(JSONWebKeySet keySet, JWK.Use requestedUse, boolean useRequestedUseWhenNull)
wrapback to summary
private static KeyWrapper wrap(JWK jwk, JWKParser parser)