Package de.xima.fc.auth
Class AuthLoginUrlBuilder
java.lang.Object
de.xima.fc.auth.AuthLoginUrlBuilder
Builds login URLs for authentication clients.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionAuthLoginUrlBuilder
(String baseUrl, IClientDescriptor client) Constructor for a new authenticator login URL builder with the required parameters for an authenticator login URL. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the login URIwithAuthenticationTarget
(IAuthenticationTarget authenticationTarget) The authentication target for which authentication should be performed.withAuthenticationTarget
(String authenticationTarget) The authentication target for which authentication should be performed.withParameter
(String key, String value) Adds an additional request parameter to the login URI.withParameters
(Map<String, String> parameters) Adds all the entries of the given map as additional request parameter to the login URI.
-
Constructor Details
-
AuthLoginUrlBuilder
Constructor for a new authenticator login URL builder with the required parameters for an authenticator login URL.- Parameters:
baseUrl
- to use for the authenticator login URL.client
- descriptor of the authentication client to build the login URL for.
-
-
Method Details
-
withAuthenticationTarget
The authentication target for which authentication should be performed. Default isbackend
.- Parameters:
authenticationTarget
- to set- Returns:
- this builder
-
withAuthenticationTarget
The authentication target for which authentication should be performed. Default isbackend
.- Parameters:
authenticationTarget
- to set- Returns:
- this builder
-
withParameter
Adds an additional request parameter to the login URI.- Parameters:
key
- of the request parametervalue
- value of the request parameter- Returns:
- this builder
-
withParameters
Adds all the entries of the given map as additional request parameter to the login URI.- Parameters:
parameters
- request parameters to add- Returns:
- this builder
-
build
Builds the login URI- Returns:
- built login URI
-