Class ApiClient
java.lang.Object
org.forgerock.openig.fapi.apiclient.ApiClient
Data object which represents a registered OAuth2.0 client.
Contains client registration information and a method for retrieving the client's JWKS in order to access the client's public keys (to validate JWS signatures and for mTLS checks).
Use ApiClient.ApiClientBuilder
to create an instance.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiClient.ApiClientBuilder
builder()
Create a newApiClient.ApiClientBuilder
.Get the client name.Get theJwkSetSecretStore
belonging to the client.Get the OAuth2 client_id.Get the organisation.getRoles()
Get the roles.Get the software_id.Get the Software Statement Assertion.boolean
Check if the ApiClient has been deleted.toString()
-
Method Details
-
builder
Create a newApiClient.ApiClientBuilder
.- Returns:
- new
ApiClient.ApiClientBuilder
-
getOAuth2ClientId
Get the OAuth2 client_id.- Returns:
- the OAuth2 client_id
-
getSoftwareId
Get the software_id.- Returns:
- the software_id
-
getClientName
Get the client name.- Returns:
- the client name
-
getSoftwareStatementAssertion
Get the Software Statement Assertion.- Returns:
- the Software Statement Assertion
-
getOrganisation
Get the organisation.- Returns:
- the organisation
-
getRoles
Get the roles.- Returns:
- the roles
-
isDeleted
public boolean isDeleted()Check if the ApiClient has been deleted.- Returns:
- deleted flag
-
getJwkSetSecretStore
Get theJwkSetSecretStore
belonging to the client. This can be used to verify signatures of JWTs produced by this client.- Returns:
- the
JwkSetSecretStore
belonging to the client
-
toString
-