public class NimbusJwtSerializer extends Object implements JwtSerializer
| Constructor and Description |
|---|
NimbusJwtSerializer() |
NimbusJwtSerializer(Provider provider) |
| Modifier and Type | Method and Description |
|---|---|
protected com.nimbusds.jose.JWSSigner |
createECDSASignerForKey(ECPrivateKey privateKey) |
protected com.nimbusds.jose.JWSSigner |
createRSASSASignerForKey(RSAPrivateKey privateKey) |
String |
serialize(Jwt jwt,
PrivateKey privateKey)
Write the JWT with an appropriate signature.
|
public NimbusJwtSerializer()
public NimbusJwtSerializer(Provider provider)
public String serialize(Jwt jwt, PrivateKey privateKey) throws SigningException, UnsupportedAlgorithmException
JwtSerializerserialize in interface JwtSerializerjwt - the JWT object to serialize as signed JWTprivateKey - the private key to use to sign the JWTSigningException - if there was a problem signing the JWTUnsupportedAlgorithmException - if the algorithm in the JWT headers is not supportedprotected com.nimbusds.jose.JWSSigner createRSASSASignerForKey(RSAPrivateKey privateKey)
protected com.nimbusds.jose.JWSSigner createECDSASignerForKey(ECPrivateKey privateKey) throws UnsupportedAlgorithmException
UnsupportedAlgorithmExceptionCopyright © 2017 Atlassian. All rights reserved.