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