Class OAuth2Service
- java.lang.Object
-
- io.jans.ca.plugin.adminui.service.BaseService
-
- io.jans.ca.plugin.adminui.service.auth.OAuth2Service
-
@Singleton public class OAuth2Service extends BaseService
-
-
Constructor Summary
Constructors Constructor Description OAuth2Service()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenResponse
getAccessToken(String code, String codeVerifier, String appType)
Calls token endpoint from the Identity Provider and returns a valid Access Token.TokenResponse
getApiProtectionToken(String userInfoJwt, String appType)
Calls token endpoint from the Identity Provider and returns a valid Access Token.UserInfoResponse
getUserInfo(UserInfoRequest userInfoRequest, String appType)
-
Methods inherited from class io.jans.ca.plugin.adminui.service.BaseService
executeDCR, getClaims, getToken, getToken
-
-
-
-
Method Detail
-
getAccessToken
public TokenResponse getAccessToken(String code, String codeVerifier, String appType) throws ApplicationException
Calls token endpoint from the Identity Provider and returns a valid Access Token.- Throws:
ApplicationException
-
getApiProtectionToken
public TokenResponse getApiProtectionToken(String userInfoJwt, String appType) throws ApplicationException
Calls token endpoint from the Identity Provider and returns a valid Access Token.- Throws:
ApplicationException
-
getUserInfo
public UserInfoResponse getUserInfo(UserInfoRequest userInfoRequest, String appType) throws ApplicationException
- Throws:
ApplicationException
-
-