public interface SignatureConfiguration
Modifier and Type | Method and Description |
---|---|
com.nimbusds.jwt.SignedJWT |
sign(com.nimbusds.jwt.JWTClaimsSet claims)
Generate a signed JWT based on claims.
|
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.
|
boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm)
algorithm
- the signature algorithmcom.nimbusds.jwt.SignedJWT sign(com.nimbusds.jwt.JWTClaimsSet claims)
claims
- the provided claimsboolean verify(com.nimbusds.jwt.SignedJWT jwt) throws com.nimbusds.jose.JOSEException
jwt
- the signed JWTcom.nimbusds.jose.JOSEException
- exception when verifying the JWTCopyright © 2018. All rights reserved.