Class AuthenticateRequest
java.lang.Object
se.swedenconnect.bankid.rpapi.service.AuthenticateRequest
Representation of the parameters required for an authenticate call.
- Author:
- Martin Lindström, Felix Hellman
-
Constructor Summary
ConstructorDescriptionAuthenticateRequest
(String endUserIp, UserVisibleData userVisibleData, Requirement requirement) Creates parameter object for anBankIDClient.authenticate(AuthenticateRequest)
call. -
Method Summary
Modifier and TypeMethodDescriptionGets the user IP address as seen by the relying party.Gets the authentication requirements.Gets the data to display to the user during authentication.
-
Constructor Details
-
AuthenticateRequest
public AuthenticateRequest(String endUserIp, UserVisibleData userVisibleData, Requirement requirement) Creates parameter object for anBankIDClient.authenticate(AuthenticateRequest)
call.- Parameters:
endUserIp
- the user IP address as seen by the relying partyuserVisibleData
- data to display to the user during authentication (optional)requirement
- used by the relying party to set requirements how the authentication operation must be performed. Default rules are applied if omitted- Throws:
BankIDException
- for errors
-
-
Method Details
-
getEndUserIp
Gets the user IP address as seen by the relying party.- Returns:
- the user IP
-
getUserVisibleData
Gets the data to display to the user during authentication.- Returns:
- the data to display or
null
-
getRequirement
Gets the authentication requirements.- Returns:
- the
Requirement
ornull
-