public class JWTAccessTokenBuilder
extends org.wso2.carbon.identity.oauth2.token.OauthTokenIssuerImpl
| Constructor and Description |
|---|
JWTAccessTokenBuilder() |
| Modifier and Type | Method and Description |
|---|---|
String |
accessToken(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext) |
String |
accessToken(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext oAuthTokenReqMessageContext) |
protected String |
buildIDToken(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request)
Build a signed jwt token from authorization request message context
|
protected String |
buildIDToken(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request)
To build id token from OauthToken request message context
|
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
|
protected String |
signJWT(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet,
org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request) |
protected String |
signJWT(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet,
org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request)
Generic Signing function
|
protected String |
signJWTWithRSA(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet,
org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request) |
protected String |
signJWTWithRSA(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet,
org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request)
sign JWT token from RSA algorithm
|
public JWTAccessTokenBuilder()
throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
org.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionpublic String accessToken(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext oAuthTokenReqMessageContext) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException
accessToken in interface org.wso2.carbon.identity.oauth2.token.OauthTokenIssueraccessToken in class org.wso2.carbon.identity.oauth2.token.OauthTokenIssuerImplorg.apache.oltu.oauth2.common.exception.OAuthSystemExceptionpublic String accessToken(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext oAuthAuthzReqMessageContext) throws org.apache.oltu.oauth2.common.exception.OAuthSystemException
accessToken in interface org.wso2.carbon.identity.oauth2.token.OauthTokenIssueraccessToken in class org.wso2.carbon.identity.oauth2.token.OauthTokenIssuerImplorg.apache.oltu.oauth2.common.exception.OAuthSystemExceptionprotected String buildIDToken(org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
request - Token request message contextorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected String buildIDToken(org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
request - Oauth authorization message contextorg.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected String signJWTWithRSA(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
jwtClaimsSet - contains JWT bodyrequest - org.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected String signJWTWithRSA(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
org.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected String signJWT(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, org.wso2.carbon.identity.oauth2.token.OAuthTokenReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
jwtClaimsSet - contains JWT bodyrequest - org.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected String signJWT(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet, org.wso2.carbon.identity.oauth2.authz.OAuthAuthzReqMessageContext request) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
org.wso2.carbon.identity.oauth2.IdentityOAuth2Exceptionprotected com.nimbusds.jose.JWSAlgorithm mapSignatureAlgorithm(String signatureAlgorithm) throws org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception
signatureAlgorithm - org.wso2.carbon.identity.oauth2.IdentityOAuth2ExceptionCopyright © 2018 WSO2. All rights reserved.