public class NimbusVerifiableJwt extends Object implements VerifiableJwt
| Constructor and Description |
|---|
NimbusVerifiableJwt(Jwt unverifiedJwt,
com.nimbusds.jose.JWSObject jwsObject,
Provider provider) |
| Modifier and Type | Method and Description |
|---|---|
static VerifiableJwt |
buildVerifiableJwt(com.nimbusds.jose.JWSObject jwsObject,
com.nimbusds.jwt.JWTClaimsSet claims,
Provider provider)
Factory method to create a signature verifiable jwt.
|
JwtClaims |
getClaims() |
JwsHeader |
getHeader() |
void |
verifySignature(PublicKey publicKey)
Verify the signature of the given Signed Jwt.
|
public static VerifiableJwt buildVerifiableJwt(com.nimbusds.jose.JWSObject jwsObject, com.nimbusds.jwt.JWTClaimsSet claims, Provider provider) throws UnsupportedAlgorithmException
jwsObject - a json web signature objectclaims - jwt claims setprovider - Java Security providerUnsupportedAlgorithmException - if the signing algorithm is not supportedpublic void verifySignature(PublicKey publicKey) throws SignatureMismatchException, UnsupportedAlgorithmException
VerifiableJwtverifySignature in interface VerifiableJwtpublicKey - the public key to use to verify the signatureSignatureMismatchExceptionUnsupportedAlgorithmExceptionpublic JwsHeader getHeader()
Copyright © 2017 Atlassian. All rights reserved.