Class BaseService
- java.lang.Object
-
- io.jans.ca.plugin.adminui.service.BaseService
-
- Direct Known Subclasses:
AUIConfigurationService,LicenseDetailsService,OAuth2Service
public class BaseService extends Object
-
-
Constructor Summary
Constructors Constructor Description BaseService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DCRResponseexecuteDCR(String ssaJwt)It takes a software statement assertion (SSA) as input, and returns a client ID and client secretMap<String,Object>getClaims(io.jans.as.model.jwt.Jwt jwtObj)It takes a JWT object and returns a Map of the claimsio.jans.as.client.TokenResponsegetToken(io.jans.as.client.TokenRequest tokenRequest, String tokenEndpoint)io.jans.as.client.TokenResponsegetToken(io.jans.as.client.TokenRequest tokenRequest, String tokenEndpoint, String userInfoJwt)> This function takes a token request, a token endpoint, and a user info JWT, and returns a token response
-
-
-
Method Detail
-
getToken
public io.jans.as.client.TokenResponse getToken(io.jans.as.client.TokenRequest tokenRequest, String tokenEndpoint)
-
getToken
public io.jans.as.client.TokenResponse getToken(io.jans.as.client.TokenRequest tokenRequest, String tokenEndpoint, String userInfoJwt)> This function takes a token request, a token endpoint, and a user info JWT, and returns a token response- Parameters:
tokenRequest- This is the object that contains the parameters that are sent to the token endpoint.tokenEndpoint- The token endpoint of the authorization server.userInfoJwt- This is the JWT that is returned from the userinfo endpoint.- Returns:
- A TokenResponse object
-
executeDCR
public DCRResponse executeDCR(String ssaJwt)
It takes a software statement assertion (SSA) as input, and returns a client ID and client secret- Parameters:
ssaJwt- The Software Statement Assertion (SSA) JWT that you received from the Scan server.- Returns:
- The client id and client secret of the newly created client.
-
-