Record Class MfaMethod
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.api.security.mfa.MfaMethod
- Record Components:
condition
- predicate which indicate if user can choose method for authenticationname
- unique method namenameKey
- translation key for methoddescriptionKey
- translation key for method descriptionimageUrl
- url of image used to represent methodorder
- positive number used to sort methodsresource
- url to authentication flow JS react component exported as ES6+ moduleconfigurationResource
- url to configuration JS react component exported as ES6+ moduleadminUrl
- url to configuration page in admin panel. Used if adminResource not specifiedadminResource
- url to react component used to render configuration in admin panel
public record MfaMethod(String imageUrl, String name, String nameKey, String descriptionKey, String resource, Long order, Predicate<StandardUser> condition, String configurationResource, String adminUrl, String adminResource)
extends Record
Record representing single MFA method that exists in system.
This record contains all information needed to present MFA method to user.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminResource
record component.adminUrl()
Returns the value of theadminUrl
record component.static MfaMethod.Builder
builder()
Returns the value of thecondition
record component.Returns the value of theconfigurationResource
record component.Returns the value of thedescriptionKey
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.imageUrl()
Returns the value of theimageUrl
record component.name()
Returns the value of thename
record component.nameKey()
Returns the value of thenameKey
record component.order()
Returns the value of theorder
record component.resource()
Returns the value of theresource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MfaMethod
public MfaMethod(String imageUrl, String name, String nameKey, String descriptionKey, String resource, Long order, Predicate<StandardUser> condition, String configurationResource, String adminUrl, String adminResource) Creates an instance of aMfaMethod
record class.- Parameters:
imageUrl
- the value for theimageUrl
record componentname
- the value for thename
record componentnameKey
- the value for thenameKey
record componentdescriptionKey
- the value for thedescriptionKey
record componentresource
- the value for theresource
record componentorder
- the value for theorder
record componentcondition
- the value for thecondition
record componentconfigurationResource
- the value for theconfigurationResource
record componentadminUrl
- the value for theadminUrl
record componentadminResource
- the value for theadminResource
record component
-
-
Method Details
-
builder
-
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)
. -
imageUrl
Returns the value of theimageUrl
record component.- Returns:
- the value of the
imageUrl
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
nameKey
Returns the value of thenameKey
record component.- Returns:
- the value of the
nameKey
record component
-
descriptionKey
Returns the value of thedescriptionKey
record component.- Returns:
- the value of the
descriptionKey
record component
-
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
order
Returns the value of theorder
record component.- Returns:
- the value of the
order
record component
-
condition
Returns the value of thecondition
record component.- Returns:
- the value of the
condition
record component
-
configurationResource
Returns the value of theconfigurationResource
record component.- Returns:
- the value of the
configurationResource
record component
-
adminUrl
Returns the value of theadminUrl
record component.- Returns:
- the value of the
adminUrl
record component
-
adminResource
Returns the value of theadminResource
record component.- Returns:
- the value of the
adminResource
record component
-