Package org.forgerock.openidconnect
Class OpenIdConnectClientRegistrationService
- java.lang.Object
-
- org.forgerock.openidconnect.OpenIdConnectClientRegistrationService
-
@Singleton public class OpenIdConnectClientRegistrationService extends Object
Service for registering OpenId Connect clients.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.json.JsonValuecreateRegistration(String accessToken, String deploymentUrl, OAuth2Request request)Creates an OpenId Connect client registration in the OAuth2 provider.org.forgerock.json.JsonValuegetRegistration(String clientId, String accessToken, OAuth2Request request)Gets an OpenId Connect client registration from the OAuth2 provider.
-
-
-
Method Detail
-
createRegistration
public org.forgerock.json.JsonValue createRegistration(String accessToken, String deploymentUrl, OAuth2Request request) throws InvalidRedirectUri, InvalidClientMetadata, ServerException, UnsupportedResponseTypeException, AccessDeniedException, NotFoundException, InvalidPostLogoutRedirectUri
Creates an OpenId Connect client registration in the OAuth2 provider.- Parameters:
accessToken- The access token for making the registration call.deploymentUrl- The deployment url of the OAuth2 provider.request- The OAuth2 request.- Returns:
- JsonValue representation of the client registration.
- Throws:
InvalidRedirectUri- If redirect urls are invalid.InvalidClientMetadata- If client metadata is invalid.ServerException- If any internal server error occurs.UnsupportedResponseTypeException- If the requested response type is not supported by either the client or the OAuth2 provider.NotFoundException- If the realm does not have an OAuth 2.0 provider service.AccessDeniedExceptionInvalidPostLogoutRedirectUri
-
getRegistration
public org.forgerock.json.JsonValue getRegistration(String clientId, String accessToken, OAuth2Request request) throws InvalidRequestException, InvalidClientMetadata, InvalidTokenException
Gets an OpenId Connect client registration from the OAuth2 provider.- Parameters:
clientId- The client's id.accessToken- The access token used to register the client.request- The OAuth2 request.- Returns:
- JsonValue representation of the client registration.
- Throws:
InvalidRequestException- If either the request does not contain the client's id or the client fails to be authenticated.InvalidClientMetadataInvalidTokenException
-
-