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

public Class HMACProvider

extends Object
implements SignatureProvider
Class Inheritance
All Implemented Interfaces
org.keycloak.jose.jws.crypto.SignatureProvider
Imports
org.keycloak.common.util.Base64Url, org.keycloak.jose.jws.Algorithm, .JWSInput, javax.crypto.Mac, .SecretKey, javax.crypto.spec.SecretKeySpec, java.nio.charset.StandardCharsets, java.security.MessageDigest, .NoSuchAlgorithmException

Author
Bill Burke
Version
$Revision: 1 $

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
getJavaAlgorithm(Algorithm alg)

Deprecated as a consequence of Algorithm being deprecated.
private static Mac
getMAC(final Algorithm alg)

Deprecated as a consequence of Algorithm being deprecated.
public static byte[]
sign(byte[] data, Algorithm algorithm, byte[] sharedSecret)

Deprecated as a consequence of Algorithm being deprecated.
public static byte[]
sign(byte[] data, Algorithm algorithm, SecretKey key)

Deprecated as a consequence of Algorithm being deprecated.
public static boolean
public static boolean
verify(JWSInput input, byte[] sharedSecret)

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HMACProviderback to summary
public HMACProvider()

Method Detail

getJavaAlgorithmback to summary
private static String getJavaAlgorithm(Algorithm alg)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

getMACback to summary
private static Mac getMAC(final Algorithm alg)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

signback to summary
public static byte[] sign(byte[] data, Algorithm algorithm, byte[] sharedSecret)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

signback to summary
public static byte[] sign(byte[] data, Algorithm algorithm, SecretKey key)

Deprecated

as a consequence of Algorithm being deprecated. See corresponding docs for further information.

verifyback to summary
public static boolean verify(JWSInput input, SecretKey key)
verifyback to summary
public static boolean verify(JWSInput input, byte[] sharedSecret)
verifyback to summary
public boolean verify(JWSInput input, String key)

Implements org.keycloak.jose.jws.crypto.SignatureProvider.verify.

Annotations
@Override