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 theadminResourcerecord component.adminUrl()Returns the value of theadminUrlrecord component.static MfaMethod.Builderbuilder()Returns the value of theconditionrecord component.Returns the value of theconfigurationResourcerecord component.Returns the value of thedescriptionKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imageUrl()Returns the value of theimageUrlrecord component.name()Returns the value of thenamerecord component.nameKey()Returns the value of thenameKeyrecord component.order()Returns the value of theorderrecord component.resource()Returns the value of theresourcerecord component.final StringtoString()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 aMfaMethodrecord class.- Parameters:
imageUrl- the value for theimageUrlrecord componentname- the value for thenamerecord componentnameKey- the value for thenameKeyrecord componentdescriptionKey- the value for thedescriptionKeyrecord componentresource- the value for theresourcerecord componentorder- the value for theorderrecord componentcondition- the value for theconditionrecord componentconfigurationResource- the value for theconfigurationResourcerecord componentadminUrl- the value for theadminUrlrecord componentadminResource- the value for theadminResourcerecord 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 theimageUrlrecord component.- Returns:
- the value of the
imageUrlrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nameKey
Returns the value of thenameKeyrecord component.- Returns:
- the value of the
nameKeyrecord component
-
descriptionKey
Returns the value of thedescriptionKeyrecord component.- Returns:
- the value of the
descriptionKeyrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
condition
Returns the value of theconditionrecord component.- Returns:
- the value of the
conditionrecord component
-
configurationResource
Returns the value of theconfigurationResourcerecord component.- Returns:
- the value of the
configurationResourcerecord component
-
adminUrl
Returns the value of theadminUrlrecord component.- Returns:
- the value of the
adminUrlrecord component
-
adminResource
Returns the value of theadminResourcerecord component.- Returns:
- the value of the
adminResourcerecord component
-