Uses of Enum Class
com.irurueta.authserver.authorization.domain.ott.OttChannel
Packages that use OttChannel
Package
Description
One-time token authentication: e-mail and SMS codes and magic links as a primary sign-in method and as a second
factor, the per-channel factors, the rate limits, the providers and filters, and the phone management API and
account page.
Use cases of the one-time-code (e-mail and SMS) authentication factor: requesting, verifying and cleaning up codes,
and the policy beans they share.
One-time tokens: e-mail and SMS codes and magic links as a sign-in method.
Mail adapter of the authorization server: delivers one-time tokens and account e-mails.
-
Uses of OttChannel in com.irurueta.authserver.authorization.api.web.ott
Fields in com.irurueta.authserver.authorization.api.web.ott declared as OttChannelModifier and TypeFieldDescriptionprivate final OttChannelOttGenerationParameters.channelThe field for thechannelrecord component.private final OttChannelPendingOtt.channelThe field for thechannelrecord component.Methods in com.irurueta.authserver.authorization.api.web.ott that return OttChannelModifier and TypeMethodDescriptionOttGenerationParameters.channel()Returns the value of thechannelrecord component.PendingOtt.channel()Returns the value of thechannelrecord component.Methods in com.irurueta.authserver.authorization.api.web.ott that return types with arguments of type OttChannelModifier and TypeMethodDescriptionOttSecondFactorChannels.allowed(org.springframework.security.core.Authentication authentication) Gets the channels a signed-in user may use as the second factor.Methods in com.irurueta.authserver.authorization.api.web.ott with parameters of type OttChannelModifier and TypeMethodDescriptionbooleanOttSecondFactorChannels.isAllowed(org.springframework.security.core.Authentication authentication, OttChannel channel) Tells whether a signed-in user may use a channel as the second factor.static StringOttFactors.secondFactorAuthority(OttChannel channel) Gets the authority a channel grants when it is the second factor.booleanPrimaryFactorSession.signedInThrough(org.springframework.security.core.Authentication authentication, OttChannel channel) Tells whether a channel is the one that signed the user in.static StringOttFactors.signInAuthority(OttChannel channel) Gets the authority a channel grants when it signs the user in.Constructors in com.irurueta.authserver.authorization.api.web.ott with parameters of type OttChannelModifierConstructorDescriptionOttGenerationParameters(OttChannel channel, OttKind kind, OttPurpose purpose) Creates an instance of aOttGenerationParametersrecord class.PendingOtt(String identifier, String bindingId, OttKind kind, OttPurpose purpose, OttChannel channel) Creates an instance of aPendingOttrecord class. -
Uses of OttChannel in com.irurueta.authserver.authorization.application.ott
Fields in com.irurueta.authserver.authorization.application.ott declared as OttChannelModifier and TypeFieldDescriptionprivate final OttChannelOttDestination.channelThe field for thechannelrecord component.private final OttChannelOttVerificationResult.channelThe field for thechannelrecord component.Methods in com.irurueta.authserver.authorization.application.ott that return OttChannelModifier and TypeMethodDescriptionOttDestination.channel()Returns the value of thechannelrecord component.OttVerificationResult.channel()Returns the value of thechannelrecord component.Methods in com.irurueta.authserver.authorization.application.ott with parameters of type OttChannelModifier and TypeMethodDescriptionResolveOttDestinationUseCase.addressOf(UserAccount account, OttChannel channel) Reads the verified address of an account for a channel.RequestOneTimeCodeUseCase.execute(String identifier, OttChannel channel, OttPurpose purpose, String bindingId) Requests a code.ResolveOttDestinationUseCase.execute(String username, OttChannel channel) Resolves the destination of a user.static OttVerificationResultOttVerificationResult.success(OttChannel channel) Creates the result of an accepted code.Method parameters in com.irurueta.authserver.authorization.application.ott with type arguments of type OttChannelModifier and TypeMethodDescriptionprivate OttVerificationResultVerifyOneTimeCodeUseCase.check(String bindingId, String username, String code, OttPurpose purpose, Set<OttChannel> channels) Checks a code against the active one, counting the attempt.VerifyOneTimeCodeUseCase.execute(String bindingId, String username, String code, OttPurpose purpose, Set<OttChannel> channels) Verifies a code.Constructors in com.irurueta.authserver.authorization.application.ott with parameters of type OttChannelModifierConstructorDescriptionOttDestination(UUID userId, OttChannel channel, String address) Validates the destination.OttVerificationResult(OttVerificationResult.Status status, OttChannel channel) Creates an instance of aOttVerificationResultrecord class. -
Uses of OttChannel in com.irurueta.authserver.authorization.domain.ott
Fields in com.irurueta.authserver.authorization.domain.ott declared as OttChannelModifier and TypeFieldDescriptionprivate final OttChannelOneTimeCode.channelThe field for thechannelrecord component.Methods in com.irurueta.authserver.authorization.domain.ott that return OttChannelModifier and TypeMethodDescriptionOneTimeCode.channel()Returns the value of thechannelrecord component.static OttChannelReturns the enum constant of this class with the specified name.static OttChannel[]OttChannel.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.irurueta.authserver.authorization.domain.ott with parameters of type OttChannelModifier and TypeMethodDescriptionvoidOttDelivery.deliverCode(OttChannel channel, String destination, String code, Duration validFor) Delivers a numeric code.voidOttDelivery.deliverLink(OttChannel channel, String destination, URI link, Duration validFor) Delivers a magic link.Constructors in com.irurueta.authserver.authorization.domain.ott with parameters of type OttChannelModifierConstructorDescriptionOneTimeCode(UUID id, String username, OttChannel channel, OttPurpose purpose, String codeHash, String bindingId, int attempts, Instant expiresAt, Instant createdAt) Validates the code. -
Uses of OttChannel in com.irurueta.authserver.authorization.infrastructure.mail
Methods in com.irurueta.authserver.authorization.infrastructure.mail with parameters of type OttChannelModifier and TypeMethodDescriptionvoidThymeleafOttMailer.deliverCode(OttChannel channel, String destination, String code, Duration validFor) voidThymeleafOttMailer.deliverLink(OttChannel channel, String destination, URI link, Duration validFor) private static voidThymeleafOttMailer.requireEmail(OttChannel channel) Refuses a channel other than e-mail.