Class ApiClient.ApiClientBuilder
java.lang.Object
org.forgerock.openig.fapi.apiclient.ApiClient.ApiClientBuilder
- Enclosing class:
- ApiClient
Builder of
ApiClient
objects.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds anApiClient
.clientName
(String clientName) Set the clientName.deleted
(boolean deleted) Set the deleted flag.oAuth2ClientId
(String oAuth2ClientId) Set the oAuth2ClientId value.organisation
(ApiClientOrganisation organisation) Set the client's organisation.Set the client's roles.softwareId
(String softwareId) Set the softwareId.softwareStatementAssertion
(SignedJwt softwareStatementAssertion) Set the softwareStatementAssertion.withEmbeddedJwksSupplier
(JWKSet jwkSet) Configure the JWKS with an embeddedJWKSet
.withJwkSetSecretStore
(JwkSetSecretStore jwkSetSecretStore) Configure the JWKS with a remoteJWKSet
, using aJwkSetSecretStore
.withUriJwksSupplier
(URI jwksUri, JwkSetService jwkSetService) Configure the JWKS with a remoteJWKSet
, using theJwkSetService
to obtain theJwkSetSecretStore
for the jwks_uri.
-
Method Details
-
oAuth2ClientId
Set the oAuth2ClientId value.- Parameters:
oAuth2ClientId
- the client's OAuth2.0 client_id- Returns:
- the builder
-
softwareId
Set the softwareId.- Parameters:
softwareId
- the software_id of the software being used by the client- Returns:
- the builder
-
clientName
Set the clientName.- Parameters:
clientName
- the name of the client- Returns:
- the builder
-
withEmbeddedJwksSupplier
Configure the JWKS with an embeddedJWKSet
.- Parameters:
jwkSet
- the JWKSet for the supplier to return- Returns:
- the builder
-
withUriJwksSupplier
Configure the JWKS with a remoteJWKSet
, using theJwkSetService
to obtain theJwkSetSecretStore
for the jwks_uri. -
withJwkSetSecretStore
Configure the JWKS with a remoteJWKSet
, using aJwkSetSecretStore
. This provides support for a preconfiguredJwkSetSecretStore
, with options provided.- Parameters:
jwkSetSecretStore
- theJwkSetSecretStore
to use to retrieve theJWKSet
- Returns:
- the builder
-
softwareStatementAssertion
Set the softwareStatementAssertion.- Parameters:
softwareStatementAssertion
- the SignedJwt representation of the software statement used during registration- Returns:
- the builder
-
organisation
Set the client's organisation.- Parameters:
organisation
- theApiClientOrganisation
that this client belongs to- Returns:
- the builder
-
deleted
Set the deleted flag.- Parameters:
deleted
- flag indicating if ApiClient has been soft deleted in datastore.- Returns:
- the builder
-
roles
Set the client's roles.- Parameters:
roles
- the roles that the client is authorized to perform- Returns:
- the builder
-
build
Builds anApiClient
.- Returns:
- the ApiClient
-