Package io.jans.as.model.jws
Class HMACSigner
- java.lang.Object
-
- io.jans.as.model.jws.AbstractJwsSigner
-
- io.jans.as.model.jws.HMACSigner
-
- All Implemented Interfaces:
JwsSigner
public class HMACSigner extends AbstractJwsSigner
- Version:
- July 31, 2016
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description HMACSigner(SignatureAlgorithm signatureAlgorithm, String sharedSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateSignature(String signingInput)
boolean
validateSignature(String signingInput, String signature)
-
Methods inherited from class io.jans.as.model.jws.AbstractJwsSigner
getSignatureAlgorithm, sign, validate, validateAccessToken, validateAuthorizationCode, validateState
-
-
-
-
Constructor Detail
-
HMACSigner
public HMACSigner(SignatureAlgorithm signatureAlgorithm, String sharedSecret)
-
-
Method Detail
-
generateSignature
public String generateSignature(String signingInput) throws SignatureException
- Specified by:
generateSignature
in classAbstractJwsSigner
- Throws:
SignatureException
-
validateSignature
public boolean validateSignature(String signingInput, String signature) throws SignatureException
- Specified by:
validateSignature
in classAbstractJwsSigner
- Throws:
SignatureException
-
-