Class BaseService

    • Constructor Detail

      • BaseService

        public BaseService()
    • 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,
                                                        List<String> permissionTags)
        > 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.
      • getClaims

        public Map<String,​Object> getClaims​(io.jans.as.model.jwt.Jwt jwtObj)
        It takes a JWT object and returns a Map of the claims
        Parameters:
        jwtObj - The JWT object that you want to get the claims from.
        Returns:
        A map of claims.