Module dev.eidentification.bankid
Record Class AuthenticationRequest
java.lang.Object
java.lang.Record
dev.eidentification.bankid.client.request.AuthenticationRequest
- Record Components:
endUserIp
- The user IP address as seen by RP. String, IPv4 and IPv6 is allowed.requirement
- Requirements on how the auth or sign order must be performed.userVisibleData
- The text to be displayed and signed. The text can be formatted using CR, LF and CRLF for new lines. 1--40 000 characters after base 64 encoding.userNonVisibleData
- Data not displayed for the user. 1-200 000 characters after base 64-encoding.userVisibleDataFormat
- This parameter indicates that userVisibleData holds formatting characters which, will potentially make the text displayed to the user nicer to look at.
- All Implemented Interfaces:
Request
public record AuthenticationRequest(String endUserIp, @Nullable Requirement requirement, @Nullable UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat)
extends Record
implements Request
Represents an authentication request.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationRequest
(String endUserIp, @Nullable Requirement requirement, @Nullable UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat) AuthenticationRequest constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a new instance of AuthenticationRequestBuilder.Returns the value of theendUserIp
record component.final boolean
Indicates whether some other object is "equal to" this one.getUri()
Returns the URI of the authentication request.final int
hashCode()
Returns a hash code value for this object.@Nullable Requirement
Returns the value of therequirement
record component.final String
toString()
Returns a string representation of this record class.@Nullable UserNonVisibleData
Returns the value of theuserNonVisibleData
record component.@Nullable UserVisibleData
Returns the value of theuserVisibleData
record component.@Nullable VisibleDataFormat
Returns the value of theuserVisibleDataFormat
record component.
-
Constructor Details
-
AuthenticationRequest
public AuthenticationRequest(String endUserIp, @Nullable Requirement requirement, @Nullable UserVisibleData userVisibleData, @Nullable UserNonVisibleData userNonVisibleData, @Nullable VisibleDataFormat userVisibleDataFormat) AuthenticationRequest constructor.- Throws:
NullPointerException
- ifendUserIp
isnull
-
-
Method Details
-
builder
Creates a new instance of AuthenticationRequestBuilder.- Returns:
- A new instance of AuthenticationRequestBuilder.
-
getUri
Returns the URI of the authentication request. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
endUserIp
Returns the value of theendUserIp
record component.- Returns:
- the value of the
endUserIp
record component
-
requirement
Returns the value of therequirement
record component.- Returns:
- the value of the
requirement
record component
-
userVisibleData
Returns the value of theuserVisibleData
record component.- Returns:
- the value of the
userVisibleData
record component
-
userNonVisibleData
Returns the value of theuserNonVisibleData
record component.- Returns:
- the value of the
userNonVisibleData
record component
-
userVisibleDataFormat
Returns the value of theuserVisibleDataFormat
record component.- Returns:
- the value of the
userVisibleDataFormat
record component
-