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