public class ClientBuilder extends Object
Constructor and Description |
---|
ClientBuilder() |
Modifier and Type | Method and Description |
---|---|
Client |
createClient()
Creates the OAuth2 Client.
|
ClientBuilder |
setAccessToken(String accessToken)
Sets the registration access token of the OAuth2Client.
|
ClientBuilder |
setAccessTokenLifeTime(Long accessTokenLifeTime)
Sets the Access token lifetime.
|
ClientBuilder |
setAllowedGrantScopes(List<String> allowedGrantScopes)
Sets the allowed scopes of the OAuth2Client.
|
ClientBuilder |
setApplicationType(String applicationType)
Sets the application type of the OAuth2Client.
|
ClientBuilder |
setAuthorizationCodeLifeTime(Long authorizationCodeLifeTime)
Sets the authorization code lifetime.
|
ClientBuilder |
setClientID(String clientID)
Sets the client id of the OAuth2Client.
|
ClientBuilder |
setClientName(List<String> clientName)
Sets the client_name of the OAuth2Client
|
ClientBuilder |
setClientSecret(String clientSecret)
Sets the client secret of the OAuth2Client.
|
ClientBuilder |
setClientSessionURI(String clientSessionURI)
Sets the client session uri of the OAuth2Client.
|
ClientBuilder |
setClientType(String clientType)
Sets the client type of the OAuth2Client.
|
ClientBuilder |
setContacts(List<String> contacts) |
ClientBuilder |
setDefaultGrantScopes(List<String> defaultGrantScopes)
Sets the default scopes of the OAuth2Client.
|
ClientBuilder |
setDefaultMaxAge(Long defaultMaxAge)
Sets the default max age on the OAuth2Client.
|
ClientBuilder |
setDefaultMaxAgeEnabled(Boolean defaultMaxAgeEnabled)
Sets whether to enforce the default max age.
|
ClientBuilder |
setDisplayDescription(List<String> displayDescription)
Sets the client description of the OAuth2Client.
|
ClientBuilder |
setDisplayName(List<String> displayName)
Sets the display name of the OAuth2Client.
|
ClientBuilder |
setIdTokenSignedResponseAlgorithm(String idTokenSignedResponseAlgorithm)
Sets the id token signed response alg of the OAuth2Client.
|
ClientBuilder |
setJwks(String jwks)
Sets the JWKs value.
|
ClientBuilder |
setJwksUri(String jwksUri)
Sets the JWKs URI value.
|
ClientBuilder |
setJwtTokenLifeTime(Long jwtTokenLifeTime)
Sets the JWT token lifetime.
|
ClientBuilder |
setPostLogoutRedirectionURIs(List<String> postLogoutRedirectionURIs)
Sets the post logout redirection URIs of the OAuth2Client.
|
ClientBuilder |
setPublicKeySelector(String selector)
Sets the public key selector.
|
ClientBuilder |
setRedirectionURIs(List<String> redirectionURIs)
Sets the redirection uris of the OAuth2Client.
|
ClientBuilder |
setRefreshTokenLifeTime(Long refreshTokenLifeTime)
Sets the Refresh token lifetime.
|
ClientBuilder |
setResponseTypes(List<String> responseTypes)
Sets the response types of the OAuth2Client.
|
ClientBuilder |
setSectorIdentifierUri(String sectorIdentifierUri)
Sets the sector identifier uri.
|
ClientBuilder |
setSubjectType(String subjectType)
Sets the subject type of the OAuth2Client.
|
ClientBuilder |
setTokenEndpointAuthMethod(String tokenEndpointAuthMethod)
Sets the token endpoint auth method value.
|
ClientBuilder |
setX509(String x509)
Sets the X509 value.
|
public ClientBuilder setClientID(String clientID)
clientID
- The client id.public ClientBuilder setClientType(String clientType)
clientType
- The client type.public ClientBuilder setRedirectionURIs(List<String> redirectionURIs)
redirectionURIs
- The redirection uris.public ClientBuilder setAllowedGrantScopes(List<String> allowedGrantScopes)
allowedGrantScopes
- The allowed scopes.public ClientBuilder setDefaultGrantScopes(List<String> defaultGrantScopes)
defaultGrantScopes
- The default scopes.public ClientBuilder setDisplayName(List<String> displayName)
displayName
- The display name.public ClientBuilder setDisplayDescription(List<String> displayDescription)
displayDescription
- The client description.public ClientBuilder setClientName(List<String> clientName)
clientName
- the client_name to set.public ClientBuilder setSubjectType(String subjectType)
subjectType
- The subject type.public ClientBuilder setIdTokenSignedResponseAlgorithm(String idTokenSignedResponseAlgorithm)
idTokenSignedResponseAlgorithm
- The id token signed response alg.public ClientBuilder setPostLogoutRedirectionURIs(List<String> postLogoutRedirectionURIs)
postLogoutRedirectionURIs
- The post logout redirection URIs.public ClientBuilder setAccessToken(String accessToken)
accessToken
- The registration access token.public ClientBuilder setClientSessionURI(String clientSessionURI)
clientSessionURI
- The client session uri.public ClientBuilder setContacts(List<String> contacts)
contacts
- The contact information for the clientspublic ClientBuilder setApplicationType(String applicationType)
applicationType
- The application type.public ClientBuilder setClientSecret(String clientSecret)
clientSecret
- The client's secret.public ClientBuilder setResponseTypes(List<String> responseTypes)
responseTypes
- The response types.public ClientBuilder setDefaultMaxAge(Long defaultMaxAge)
defaultMaxAge
- The default max age, in seconds.public ClientBuilder setDefaultMaxAgeEnabled(Boolean defaultMaxAgeEnabled)
defaultMaxAgeEnabled
- Whether to enforce the default max age.public ClientBuilder setTokenEndpointAuthMethod(String tokenEndpointAuthMethod)
tokenEndpointAuthMethod
- token endpoint auth method this client uses.public ClientBuilder setJwks(String jwks)
jwks
- jwks containing valid public keys.public ClientBuilder setJwksUri(String jwksUri)
jwksUri
- URL containing JWKs of valid public keys.public ClientBuilder setX509(String x509)
x509
- Public key certificate.public ClientBuilder setPublicKeySelector(String selector)
selector
- Which of the public key types to use.public ClientBuilder setSectorIdentifierUri(String sectorIdentifierUri)
sectorIdentifierUri
- identifier uri to be used when pairwise.public ClientBuilder setAuthorizationCodeLifeTime(Long authorizationCodeLifeTime)
authorizationCodeLifeTime
- Authorization code lifetime.public ClientBuilder setAccessTokenLifeTime(Long accessTokenLifeTime)
accessTokenLifeTime
- Access token lifetime.public ClientBuilder setRefreshTokenLifeTime(Long refreshTokenLifeTime)
refreshTokenLifeTime
- Refresh token lifetime.public ClientBuilder setJwtTokenLifeTime(Long jwtTokenLifeTime)
jwtTokenLifeTime
- JWT token lifetime.public Client createClient()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.