public class JWTTokenGenerator extends DefaultTokenGenerator
| Constructor and Description |
|---|
JWTTokenGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
generateAccessToken(AccessTokenContext context)
Generate access token
|
protected com.nimbusds.jose.JWSAlgorithm |
mapSignatureAlgorithm(String signatureAlgorithm)
This method map signature algorithm define in identity.xml to nimbus signature algorithm format, Strings are
defined inline hence there are not being used any where
|
boolean |
renewAccessTokenPerRequest() |
public JWTTokenGenerator()
throws org.wso2.carbon.auth.core.exception.AuthException
org.wso2.carbon.auth.core.exception.AuthExceptionpublic void generateAccessToken(AccessTokenContext context)
TokenGeneratorgenerateAccessToken in interface TokenGeneratorgenerateAccessToken in class DefaultTokenGeneratorcontext - required data of token requestpublic boolean renewAccessTokenPerRequest()
protected com.nimbusds.jose.JWSAlgorithm mapSignatureAlgorithm(String signatureAlgorithm) throws org.wso2.carbon.auth.core.exception.AuthException
signatureAlgorithm - Signature algorithm.org.wso2.carbon.auth.core.exception.AuthException - Unsupported signature algorithm.Copyright © 2018 WSO2. All rights reserved.