public class RSASignatureGenerator extends RSASignature implements SignatureGeneratorConfiguration
RSASignature to add methods to sign JWT.algorithm| Constructor and Description | 
|---|
RSASignatureGenerator(RSASignatureGeneratorConfiguration config)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.nimbusds.jwt.SignedJWT | 
sign(com.nimbusds.jwt.JWTClaimsSet claims)
Generate a signed JWT based on claims. 
 | 
protected com.nimbusds.jwt.SignedJWT | 
signWithPrivateKey(com.nimbusds.jwt.JWTClaimsSet claims,
                  @NotNull RSAPrivateKey privateKey)  | 
supportedAlgorithmsMessage, supports, verifygetAlgorithm, setAlgorithmclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportedAlgorithmsMessage, supports, verifypublic RSASignatureGenerator(RSASignatureGeneratorConfiguration config)
config - Instance of RSASignatureConfigurationpublic com.nimbusds.jwt.SignedJWT sign(com.nimbusds.jwt.JWTClaimsSet claims)
                                throws com.nimbusds.jose.JOSEException
SignatureGeneratorConfigurationsign in interface SignatureGeneratorConfigurationclaims - the provided claimscom.nimbusds.jose.JOSEException - could be thrown while signing the JWT tokenprotected com.nimbusds.jwt.SignedJWT signWithPrivateKey(com.nimbusds.jwt.JWTClaimsSet claims,
                                                        @NotNull
                                                        @NotNull RSAPrivateKey privateKey)
                                                 throws com.nimbusds.jose.JOSEException
claims - The JWT ClaimsprivateKey - The RSA Private Keycom.nimbusds.jose.JOSEException - thrown in the JWT signing