Package io.jans.as.model.jws
Class RSASigner
- java.lang.Object
-
- io.jans.as.model.jws.AbstractJwsSigner
-
- io.jans.as.model.jws.RSASigner
-
- All Implemented Interfaces:
JwsSigner
public class RSASigner extends AbstractJwsSigner
- Version:
- February 8, 2019
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Constructor Description RSASigner(SignatureAlgorithm signatureAlgorithm, Certificate certificate)
RSASigner(SignatureAlgorithm signatureAlgorithm, RSAPrivateKey rsaPrivateKey)
RSASigner(SignatureAlgorithm signatureAlgorithm, RSAPublicKey rsaPublicKey)
-
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
-
RSASigner
public RSASigner(SignatureAlgorithm signatureAlgorithm, RSAPrivateKey rsaPrivateKey)
-
RSASigner
public RSASigner(SignatureAlgorithm signatureAlgorithm, RSAPublicKey rsaPublicKey)
-
RSASigner
public RSASigner(SignatureAlgorithm signatureAlgorithm, Certificate certificate)
-
-
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
-
-