Top Constructors Methods
org.keycloak.jose.jws.crypto

public Class HashUtils

extends Object
Class Inheritance
Imports
org.keycloak.common.util.Base64Url, org.keycloak.crypto.HashException, .JavaAlgorithm, java.nio.charset.StandardCharsets, java.security.MessageDigest, java.util.Arrays

Author
Marek Posolda

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
accessTokenHash(String jwtAlgorithmName, String input, boolean full)

public static String
accessTokenHash(String jwtAlgorithmName, String input)

public static String
encodeHashToOIDC(byte[] hash)

public static String
encodeHashToOIDC(byte[] hash, boolean full)

public static byte[]
hash(String javaAlgorithmName, byte[] inputBytes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HashUtilsback to summary
public HashUtils()

Method Detail

accessTokenHashback to summary
public static String accessTokenHash(String jwtAlgorithmName, String input, boolean full)
accessTokenHashback to summary
public static String accessTokenHash(String jwtAlgorithmName, String input)
encodeHashToOIDCback to summary
public static String encodeHashToOIDC(byte[] hash)
encodeHashToOIDCback to summary
public static String encodeHashToOIDC(byte[] hash, boolean full)
hashback to summary
public static byte[] hash(String javaAlgorithmName, byte[] inputBytes)