Module dev.eidentification.bankid
Class AuthenticationRequest.AuthenticationRequestBuilder
java.lang.Object
dev.eidentification.bankid.client.request.AuthenticationRequest.AuthenticationRequestBuilder
- Enclosing class:
AuthenticationRequest
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an AuthenticationRequest object with the provided parameters.Sets the end user IP address for the authentication request.requirement(@Nullable Requirement requirement) Sets the requirement for the authentication request.toString()userNonVisibleData(@Nullable UserNonVisibleData userNonVisibleData) Sets the user non-visible data for the authentication request.userVisibleData(@Nullable UserVisibleData userVisibleData) Sets the user visible data for the authentication request.userVisibleDataFormat(@Nullable VisibleDataFormat userVisibleDataFormat) Sets the user visible data format for the authentication request.
-
Method Details
-
endUserIp
Sets the end user IP address for the authentication request.- Parameters:
endUserIp- The user IP address as seen by RP.- Returns:
- This AuthenticationRequestBuilder instance.
- Throws:
NullPointerException- if endUserIp is null.
-
requirement
public AuthenticationRequest.AuthenticationRequestBuilder requirement(@Nullable Requirement requirement) Sets the requirement for the authentication request.- Parameters:
requirement- The requirement object describing how the signature must be created and verified. This parameter can be null if no specific requirement is needed.- Returns:
- This AuthenticationRequestBuilder instance.
-
userVisibleData
public AuthenticationRequest.AuthenticationRequestBuilder userVisibleData(@Nullable UserVisibleData userVisibleData) Sets the user visible data for the authentication request.- Parameters:
userVisibleData- The user visible data to be set. This parameter can be null if no user visible data is needed.- Returns:
- This AuthenticationRequestBuilder instance.
-
userNonVisibleData
public AuthenticationRequest.AuthenticationRequestBuilder userNonVisibleData(@Nullable UserNonVisibleData userNonVisibleData) Sets the user non-visible data for the authentication request.- Parameters:
userNonVisibleData- The user non-visible data to be set. This parameter can be null if no user non-visible data is needed.- Returns:
- This AuthenticationRequestBuilder instance.
-
userVisibleDataFormat
public AuthenticationRequest.AuthenticationRequestBuilder userVisibleDataFormat(@Nullable VisibleDataFormat userVisibleDataFormat) Sets the user visible data format for the authentication request.- Parameters:
userVisibleDataFormat- The user visible data format to be set. This parameter can be null if no specific format is needed.- Returns:
- This AuthenticationRequestBuilder instance.
-
build
Builds an AuthenticationRequest object with the provided parameters.- Returns:
- The built AuthenticationRequest object.
-
toString
-