Class RegistrationRequest
java.lang.Object
org.forgerock.openig.fapi.dcr.request.RegistrationRequest
This class represents the payload of a Dynamic Client Registration request, as defined in
 RFC 7591.
 
For FAPI, the software_statement is always required in the registration request and has been extracted from the rest of the clientMetadata and stored in a separate field.
 To create an instance use the RegistrationRequestFactory.
- 
Constructor Summary
ConstructorsConstructorDescriptionRegistrationRequest(SoftwareStatement softwareStatement, JsonValue clientMetadata) Constructor. - 
Method Summary
Modifier and TypeMethodDescriptiongetMetadata(String key) Generic get method allowing any metadata value to be retrieved.Get the redirect_uris value from the clientMetadata.Get the response_types value from the clientMetadata.getScope()Get the scope value from the clientMetadata.Get theSoftwareStatementextracted from the client's registration request.Get the token_endpoint_auth_method value from the clientMetadata.voidsetMetadata(String key, Object value) Generic set method allowing any metadata value to be set.voidsetRedirectUris(List<URI> redirectUris) Set the redirect_uris value in the clientMetadata.voidsetResponseTypes(List<String> responseTypes) Set the response_types value in the clientMetadata.voidSet the scope value in the clientMetadata.voidsetTokenEndpointAuthMethod(String value) Set the token_endpoint_auth_method value in the clientMetadata.Creates a JSON representation of the registration request. 
- 
Constructor Details
- 
RegistrationRequest
Constructor.- Parameters:
 softwareStatement- theSoftwareStatementextracted from the client's registration request.clientMetadata- the claims extracted from original JWT
 
 - 
 - 
Method Details
- 
getSoftwareStatement
Get theSoftwareStatementextracted from the client's registration request.- Returns:
 - the 
SoftwareStatementextracted from the client's registration request. 
 - 
getScope
Get the scope value from the clientMetadata.- Returns:
 - the scope value.
 
 - 
setScope
Set the scope value in the clientMetadata.- Parameters:
 value- the scope value to set, this will replace any value that was previously set.
 - 
getRedirectUris
Get the redirect_uris value from the clientMetadata.- Returns:
 - the redirect_uris
 
 - 
setRedirectUris
Set the redirect_uris value in the clientMetadata.- Parameters:
 redirectUris- the redirect_uris value to set, this will replace any value that was previously set.
 - 
getResponseTypes
Get the response_types value from the clientMetadata.- Returns:
 - the response_types
 
 - 
setResponseTypes
Set the response_types value in the clientMetadata.- Parameters:
 responseTypes- the response_types value to set, this will replace any value that was previously set.
 - 
getTokenEndpointAuthMethod
Get the token_endpoint_auth_method value from the clientMetadata.- Returns:
 - the token_endpoint_auth_method
 
 - 
setTokenEndpointAuthMethod
Set the token_endpoint_auth_method value in the clientMetadata.- Parameters:
 value- the token_endpoint_auth_method value to set, this will replace any value that was previously set.
 - 
getMetadata
Generic get method allowing any metadata value to be retrieved.- Parameters:
 key- the key of the metadata value to retrieve- Returns:
 - the 
JsonValueassociated with the key, if no key exists then aJsonValuewith a null value. 
 - 
setMetadata
Generic set method allowing any metadata value to be set. The clientMetadata contents may be changed by PingGateway acting on behalf of the Authorisation Server, seeclientMetadatafor more information.If a setter exists for the key, then the value will be type checked and the setter will be called. If type checking fails then an
IllegalArgumentExceptionwill be thrown.Passing a null value will remove the key from the clientMetadata if it exists.
The software_statement metadata value cannot be overwritten, this value was issued by a Trusted Directory and is immutable. Attempting to set this value will result in an
IllegalArgumentExceptionbeing thrown.- Parameters:
 key- the key of the metadata value to setvalue- the value to set
 - 
toJsonValue
Creates a JSON representation of the registration request.- Returns:
 - A JSON representation of the registration request.
 
 
 -