Record Class OttProviders
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.ott.OttProviders
- Record Components:
link- confirms a magic link (OttLinkAuthenticationProvider).code- signs a user in with a numeric code (OttCodeAuthenticationProvider).secondFactor- verifies a numeric code as a second factor (OttSecondFactorAuthenticationProvider).
public record OttProviders(org.springframework.security.authentication.AuthenticationProvider link, org.springframework.security.authentication.AuthenticationProvider code, org.springframework.security.authentication.AuthenticationProvider secondFactor)
extends Record
The authentication providers of the one-time token methods, held together. They are deliberately not declared as
AuthenticationProvider beans: Spring Security takes a single such bean as the parent of every authentication
manager, and the second-factor provider belongs to its own filter's manager only.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.security.authentication.AuthenticationProviderThe field for thecoderecord component.private final org.springframework.security.authentication.AuthenticationProviderThe field for thelinkrecord component.private final org.springframework.security.authentication.AuthenticationProviderThe field for thesecondFactorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOttProviders(org.springframework.security.authentication.AuthenticationProvider link, org.springframework.security.authentication.AuthenticationProvider code, org.springframework.security.authentication.AuthenticationProvider secondFactor) Creates an instance of aOttProvidersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AuthenticationProvidercode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.springframework.security.authentication.AuthenticationProviderlink()Returns the value of thelinkrecord component.org.springframework.security.authentication.AuthenticationProviderReturns the value of thesecondFactorrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
link
private final org.springframework.security.authentication.AuthenticationProvider linkThe field for thelinkrecord component. -
code
private final org.springframework.security.authentication.AuthenticationProvider codeThe field for thecoderecord component. -
secondFactor
private final org.springframework.security.authentication.AuthenticationProvider secondFactorThe field for thesecondFactorrecord component.
-
-
Constructor Details
-
OttProviders
public OttProviders(org.springframework.security.authentication.AuthenticationProvider link, org.springframework.security.authentication.AuthenticationProvider code, org.springframework.security.authentication.AuthenticationProvider secondFactor) Creates an instance of aOttProvidersrecord class.- Parameters:
link- the value for thelinkrecord componentcode- the value for thecoderecord componentsecondFactor- the value for thesecondFactorrecord component
-
-
Method Details
-
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). -
link
public org.springframework.security.authentication.AuthenticationProvider link()Returns the value of thelinkrecord component.- Returns:
- the value of the
linkrecord component
-
code
public org.springframework.security.authentication.AuthenticationProvider code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
secondFactor
public org.springframework.security.authentication.AuthenticationProvider secondFactor()Returns the value of thesecondFactorrecord component.- Returns:
- the value of the
secondFactorrecord component
-