public class ECSignature extends AbstractSignatureConfiguration
algorithm
Constructor and Description |
---|
ECSignature(ECSignatureConfiguration config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
supportedAlgorithmsMessage() |
boolean |
supports(com.nimbusds.jose.JWSAlgorithm algorithm)
Whether this signature configuration supports this algorithm.
|
boolean |
verify(com.nimbusds.jwt.SignedJWT jwt)
Verify a signed JWT.
|
getAlgorithm, setAlgorithm
public ECSignature(ECSignatureConfiguration config)
config
- Instance of ECSignatureConfiguration
public java.lang.String supportedAlgorithmsMessage()
public boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm)
SignatureConfiguration
algorithm
- the signature algorithmpublic boolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException
SignatureConfiguration
jwt
- the signed JWTcom.nimbusds.jose.JOSEException
- exception when verifying the JWT