Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ADMIN - Enum constant in enum class com.bank.auth_service.enums.UserRole
- amountPaid() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns the value of the
amountPaid
record component. - amountPaid() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
amountPaid
record component. - authenticate(LoginUserDto, HttpServletRequest) - Method in class com.bank.auth_service.controller.AuthenticationController
-
Authenticates a user with email and password, generating authentication tokens.
- AuthenticationController - Class in com.bank.auth_service.controller
-
Controller for handling authentication-related requests.
- AuthenticationController(AuthenticationService) - Constructor for class com.bank.auth_service.controller.AuthenticationController
- AuthenticationService - Interface in com.bank.auth_service.service
-
Service interface for handling authentication-related operations, including user login with email and password, and login with token refresh functionality.
- AuthenticationServiceImpl - Class in com.bank.auth_service.service.impl
- AuthenticationServiceImpl(JwtService, UserRepository, PasswordEncoder, RefreshTokenService, CodePublisher) - Constructor for class com.bank.auth_service.service.impl.AuthenticationServiceImpl
- AuthenticationTokenDto - Record Class in com.bank.auth_service.dto
-
DTO representing authentication tokens returned after a successful login.
- AuthenticationTokenDto(String, String) - Constructor for record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Creates an instance of a
AuthenticationTokenDto
record class. - authQueue - Variable in class com.bank.auth_service.config.RabbitmqConfig
- authQueue() - Method in class com.bank.auth_service.config.RabbitmqConfig
-
Defines the authentication queue bean.
- AuthServiceApplication - Class in com.bank.auth_service
- AuthServiceApplication() - Constructor for class com.bank.auth_service.AuthServiceApplication
- AuthUserConsumer - Class in com.bank.auth_service.consumer
-
Consumer for user-related messages from the message broker.
- AuthUserConsumer() - Constructor for class com.bank.auth_service.consumer.AuthUserConsumer
- AuthUserDto - Record Class in com.bank.auth_service.dto
-
DTO representing a user model used for creating or updating user accounts.
- AuthUserDto(String, String, UserRole) - Constructor for record class com.bank.auth_service.dto.AuthUserDto
-
Creates an instance of a
AuthUserDto
record class.
C
- code() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
code
record component. - Code - Class in com.bank.auth_service.model
-
Entity representing a verification code used for user validation processes.
- Code() - Constructor for class com.bank.auth_service.model.Code
-
Default constructor.
- Code(String, String, Long) - Constructor for class com.bank.auth_service.model.Code
-
Constructs a new Code with the specified key, code, and creation time.
- CodeNotFoundOrExpiredException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when a verification code does not exist or has expired.
- CodeNotFoundOrExpiredException() - Constructor for exception class com.bank.auth_service.exception.CodeNotFoundOrExpiredException
-
Constructs a new CodeNotFoundOrExpiredException with a default error message.
- CodePublisher - Class in com.bank.auth_service.publish
-
Handles the publication of messages to RabbitMQ queues for email notifications and payment confirmations.
- CodePublisher() - Constructor for class com.bank.auth_service.publish.CodePublisher
- CodeRepository - Interface in com.bank.auth_service.repository
-
Repository for managing
Code
entities. - com.bank.auth_service - package com.bank.auth_service
- com.bank.auth_service.config - package com.bank.auth_service.config
- com.bank.auth_service.consumer - package com.bank.auth_service.consumer
- com.bank.auth_service.controller - package com.bank.auth_service.controller
- com.bank.auth_service.dto - package com.bank.auth_service.dto
- com.bank.auth_service.enums - package com.bank.auth_service.enums
- com.bank.auth_service.exception - package com.bank.auth_service.exception
- com.bank.auth_service.model - package com.bank.auth_service.model
- com.bank.auth_service.publish - package com.bank.auth_service.publish
- com.bank.auth_service.repository - package com.bank.auth_service.repository
- com.bank.auth_service.service - package com.bank.auth_service.service
- com.bank.auth_service.service.impl - package com.bank.auth_service.service.impl
- ConclusionPaymentDto - Record Class in com.bank.auth_service.dto
-
DTO representing the conclusion of a payment transaction.
- ConclusionPaymentDto(Long, String, String, BigDecimal) - Constructor for record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Creates an instance of a
ConclusionPaymentDto
record class. - ConfirmCodeDto - Record Class in com.bank.auth_service.dto
-
DTO representing a confirmation code for a payment transaction.
- ConfirmCodeDto(String, String, Long, String, Long, String, BigDecimal) - Constructor for record class com.bank.auth_service.dto.ConfirmCodeDto
-
Creates an instance of a
ConfirmCodeDto
record class. - createRefreshToken(String, String, User) - Method in class com.bank.auth_service.service.impl.RefreshTokenServiceImpl
- createRefreshToken(String, String, User) - Method in interface com.bank.auth_service.service.RefreshTokenService
-
Creates a new refresh token valid for 7 days.
E
- email() - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Returns the value of the
email
record component. - email() - Method in record class com.bank.auth_service.dto.LoginUserDto
-
Returns the value of the
email
record component. - emailQueue - Variable in class com.bank.auth_service.config.RabbitmqConfig
- emailQueue() - Method in class com.bank.auth_service.config.RabbitmqConfig
-
Defines the email queue bean.
- equals(Object) - Method in record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.bank.auth_service.dto.LoginUserDto
-
Indicates whether some other object is "equal to" this one.
- eraseCredentials() - Method in class com.bank.auth_service.model.UserAuthenticated
F
- findByEmail(String) - Method in interface com.bank.auth_service.repository.UserRepository
-
Finds a user by their email address.
- findByKeyCode(String) - Method in interface com.bank.auth_service.repository.CodeRepository
-
Finds all verification codes associated with the given key.
- findByRefreshToken(UUID) - Method in interface com.bank.auth_service.repository.RefreshTokenRepository
-
Finds a refresh token by its UUID value.
G
- generate(String) - Method in class com.bank.auth_service.controller.VerificationCodeController
-
Generates a 6-digit verification code for the provided key.
- generateCode(String) - Method in class com.bank.auth_service.consumer.AuthUserConsumer
-
Receives a request to generate a code of 6-digit to authorizate a payment microservice make a security payment
- generateCode(String) - Method in class com.bank.auth_service.service.impl.VerificationCodeServiceImpl
- generateCode(String) - Method in interface com.bank.auth_service.service.VerificationCodeService
-
Generates a 6-digit numeric verification code tied to a unique key.
- generateToken(UserAuthenticated) - Method in class com.bank.auth_service.service.impl.JwtServiceImpl
- generateToken(UserAuthenticated) - Method in interface com.bank.auth_service.service.JwtService
-
Generates a signed JWT for the specified authenticated user.
- getAuthorities() - Method in class com.bank.auth_service.model.UserAuthenticated
- getIpAddress(HttpServletRequest) - Method in class com.bank.auth_service.service.impl.AuthenticationServiceImpl
- getPassword() - Method in class com.bank.auth_service.model.UserAuthenticated
- getUser() - Method in class com.bank.auth_service.model.UserAuthenticated
- getUsername() - Method in class com.bank.auth_service.model.UserAuthenticated
H
- handlerCredentialsLogin(InvalidUserCredentialsException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles InvalidUserCredentialsException and returns a 400 BAD REQUEST response.
- handlerDontExistOrExpiratedCode(CodeNotFoundOrExpiredException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles CodeNotFoundOrExpiredException and returns a 400 BAD REQUEST response.
- handlerInvalidCode(InvalidCodeException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles InvalidCodeException and returns a 400 BAD REQUEST response.
- handlerRefreshTokenExpired(RefreshTokenExpiredException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles RefreshTokenExpiredException and returns a 404 NOT FOUND response.
- handlerRefreshTokenNotFound(RefreshTokenNotFoundException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles RefreshTokenNotFoundException and returns a 404 NOT FOUND response.
- handlerUserNotFound(UserNotFoundException) - Method in class com.bank.auth_service.exception.RestExceptionHandler
-
Handles UserNotFoundException and returns a 404 NOT FOUND response.
- hashCode() - Method in record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.bank.auth_service.dto.LoginUserDto
-
Returns a hash code value for this object.
I
- idAccount() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns the value of the
idAccount
record component. - idAccount() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
idAccount
record component. - InvalidCodeException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when a provided verification code is invalid.
- InvalidCodeException() - Constructor for exception class com.bank.auth_service.exception.InvalidCodeException
-
Constructs a new InvalidCodeException with a default error message.
- InvalidUserCredentialsException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when user credentials are invalid during authentication.
- InvalidUserCredentialsException() - Constructor for exception class com.bank.auth_service.exception.InvalidUserCredentialsException
-
Constructs a new InvalidUserCredentialsException with a default error message.
- isAccountNonExpired() - Method in class com.bank.auth_service.model.UserAuthenticated
- isAccountNonLocked() - Method in class com.bank.auth_service.model.UserAuthenticated
- isCredentialsNonExpired() - Method in class com.bank.auth_service.model.UserAuthenticated
- isEnabled() - Method in class com.bank.auth_service.model.UserAuthenticated
J
- jwtDecoder() - Method in class com.bank.auth_service.config.KeyConfig
-
Creates a JwtDecoder bean using the configured RSA public key.
- jwtEncoder() - Method in class com.bank.auth_service.config.KeyConfig
-
Creates a JwtEncoder bean using the configured RSA public and private keys.
- JwtService - Interface in com.bank.auth_service.service
-
Service interface for handling JSON Web Token (JWT) operations.
- JwtServiceImpl - Class in com.bank.auth_service.service.impl
- JwtServiceImpl(JwtEncoder) - Constructor for class com.bank.auth_service.service.impl.JwtServiceImpl
K
- key() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
key
record component. - KeyConfig - Class in com.bank.auth_service.config
-
Configuration class for RSA-based JWT encoder and decoder beans using Nimbus JOSE + JWT.
- KeyConfig() - Constructor for class com.bank.auth_service.config.KeyConfig
L
- listenerAuthUser(AuthUserDto) - Method in class com.bank.auth_service.consumer.AuthUserConsumer
-
Receives a request to create a user from user microservice.
- login(LoginUserDto, HttpServletRequest) - Method in interface com.bank.auth_service.service.AuthenticationService
-
Authenticates a user using provided credentials and generates authentication tokens.
- login(LoginUserDto, HttpServletRequest) - Method in class com.bank.auth_service.service.impl.AuthenticationServiceImpl
- LoginUserDto - Record Class in com.bank.auth_service.dto
-
DTO representing a user login request.
- LoginUserDto(String, String) - Constructor for record class com.bank.auth_service.dto.LoginUserDto
-
Creates an instance of a
LoginUserDto
record class.
M
- main(String[]) - Static method in class com.bank.auth_service.AuthServiceApplication
- MessageHandler - Class in com.bank.auth_service.exception
-
Handler class for error messages returned in API responses.
- MessageHandler() - Constructor for class com.bank.auth_service.exception.MessageHandler
O
- objectMapper() - Method in class com.bank.auth_service.config.RabbitmqConfig
-
Configures the Jackson2JsonMessageConverter bean for message serialization.
P
- password() - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Returns the value of the
password
record component. - password() - Method in record class com.bank.auth_service.dto.LoginUserDto
-
Returns the value of the
password
record component. - passwordEncoder() - Method in class com.bank.auth_service.config.SecurityConfig
-
Encodes passwords using BCrypt hashing algorithm.
- paymentDescription() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns the value of the
paymentDescription
record component. - paymentDescription() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
paymentDescription
record component. - paymentId() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
paymentId
record component. - pixKey() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns the value of the
pixKey
record component. - pixKey() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns the value of the
pixKey
record component. - publishMessageEmailWithCodeSecurity(Code) - Method in class com.bank.auth_service.publish.CodePublisher
-
Publishes an email message containing a security code to the user.
- publishMessageEmailWithUnusualAccessWarning(String, String, String, Instant) - Method in class com.bank.auth_service.publish.CodePublisher
-
Publishes a warning email about an unusual access attempt with mismatched IP or device.
- publishValidatePayment(ConfirmCodeDto) - Method in class com.bank.auth_service.publish.CodePublisher
-
Publishes a payment confirmation message to the appropriate RabbitMQ queue after successful code validation.
R
- RabbitmqConfig - Class in com.bank.auth_service.config
-
Configuration class for RabbitMQ queues and message conversion.
- RabbitmqConfig() - Constructor for class com.bank.auth_service.config.RabbitmqConfig
- refreshToken() - Method in record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Returns the value of the
refreshToken
record component. - refreshToken(UUID, HttpServletRequest) - Method in class com.bank.auth_service.controller.AuthenticationController
-
Refreshes the authentication token using a valid refresh token.
- refreshToken(UUID, HttpServletRequest) - Method in interface com.bank.auth_service.service.AuthenticationService
-
Issues a new authentication token using a valid refresh token.
- refreshToken(UUID, HttpServletRequest) - Method in class com.bank.auth_service.service.impl.AuthenticationServiceImpl
- RefreshToken - Class in com.bank.auth_service.model
-
Entity representing a refresh token for user authentication.
- RefreshToken(long, String, String, User) - Constructor for class com.bank.auth_service.model.RefreshToken
-
Constructs a new RefreshToken with the specified expiration, client info, and user.
- RefreshTokenExpiredException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when a refresh token has expired.
- RefreshTokenExpiredException() - Constructor for exception class com.bank.auth_service.exception.RefreshTokenExpiredException
-
Constructs a new RefreshTokenExpiredException with a default error message.
- RefreshTokenNotFoundException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when a refresh token is not found.
- RefreshTokenNotFoundException() - Constructor for exception class com.bank.auth_service.exception.RefreshTokenNotFoundException
-
Constructs a new RefreshTokenNotFoundException with a default error message.
- RefreshTokenRepository - Interface in com.bank.auth_service.repository
-
Repository interface for managing
RefreshToken
entities. - RefreshTokenService - Interface in com.bank.auth_service.service
-
Service interface for operations related to refresh tokens.
- RefreshTokenServiceImpl - Class in com.bank.auth_service.service.impl
- RefreshTokenServiceImpl(RefreshTokenRepository) - Constructor for class com.bank.auth_service.service.impl.RefreshTokenServiceImpl
- requestNewCodeQueue - Variable in class com.bank.auth_service.config.RabbitmqConfig
- requestNewCodeQueue() - Method in class com.bank.auth_service.config.RabbitmqConfig
-
Defines the request new code queue bean.
- RestExceptionHandler - Class in com.bank.auth_service.exception
-
Global exception handler for the authentication service.
- RestExceptionHandler() - Constructor for class com.bank.auth_service.exception.RestExceptionHandler
S
- SecurityConfig - Class in com.bank.auth_service.config
-
Configuration class for Spring Security.
- SecurityConfig() - Constructor for class com.bank.auth_service.config.SecurityConfig
- securityFilterChain(HttpSecurity) - Method in class com.bank.auth_service.config.SecurityConfig
-
Permits all requests to the /auth/** endpoints and requires authentication for all other requests.
- SendEmailDto - Class in com.bank.auth_service.dto
-
DTO for sending email notifications.
- SendEmailDto() - Constructor for class com.bank.auth_service.dto.SendEmailDto
- sendPaymentQueue - Variable in class com.bank.auth_service.config.RabbitmqConfig
- sendPaymentQueue() - Method in class com.bank.auth_service.config.RabbitmqConfig
-
Defines the send payment queue bean.
T
- token() - Method in record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Returns the value of the
token
record component. - toString() - Method in record class com.bank.auth_service.dto.AuthenticationTokenDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.bank.auth_service.dto.ConclusionPaymentDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.bank.auth_service.dto.ConfirmCodeDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.bank.auth_service.dto.LoginUserDto
-
Returns a string representation of this record class.
U
- User - Class in com.bank.auth_service.model
-
Entity representing a user in the authentication system.
- User(String, String, UserRole) - Constructor for class com.bank.auth_service.model.User
-
Constructs a new User with the specified email, password, and role.
- USER - Enum constant in enum class com.bank.auth_service.enums.UserRole
- UserAuthenticated - Class in com.bank.auth_service.model
-
Implementation of
UserDetails
andCredentialsContainer
for authenticated users. - UserAuthenticated(User) - Constructor for class com.bank.auth_service.model.UserAuthenticated
- UserNotFoundException - Exception Class in com.bank.auth_service.exception
-
Exception thrown when a user is not found in the system.
- UserNotFoundException() - Constructor for exception class com.bank.auth_service.exception.UserNotFoundException
-
Constructs a new UserNotFoundException with a default error message.
- UserRepository - Interface in com.bank.auth_service.repository
-
Repository interface for accessing
User
entities. - userRole() - Method in record class com.bank.auth_service.dto.AuthUserDto
-
Returns the value of the
userRole
record component. - UserRole - Enum Class in com.bank.auth_service.enums
-
Enum representing user roles in the authentication service.
V
- validateCode(ConfirmCodeDto) - Method in class com.bank.auth_service.controller.VerificationCodeController
-
Validates the given verification code against the provided key.
- validateCode(ConfirmCodeDto) - Method in class com.bank.auth_service.service.impl.VerificationCodeServiceImpl
- validateCode(ConfirmCodeDto) - Method in interface com.bank.auth_service.service.VerificationCodeService
-
Validates a verification code by checking its existence, expiration, and correctness.
- validateRefreshToken(UUID) - Method in class com.bank.auth_service.service.impl.RefreshTokenServiceImpl
- validateRefreshToken(UUID) - Method in interface com.bank.auth_service.service.RefreshTokenService
-
Validates the provided refresh token.
- valueOf(String) - Static method in enum class com.bank.auth_service.enums.UserRole
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.bank.auth_service.enums.UserRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VerificationCodeController - Class in com.bank.auth_service.controller
-
Controller for handling verification code operations.
- VerificationCodeController(VerificationCodeService) - Constructor for class com.bank.auth_service.controller.VerificationCodeController
- VerificationCodeService - Interface in com.bank.auth_service.service
-
Service interface for handling verification code operations.
- VerificationCodeServiceImpl - Class in com.bank.auth_service.service.impl
- VerificationCodeServiceImpl(CodeRepository, CodePublisher) - Constructor for class com.bank.auth_service.service.impl.VerificationCodeServiceImpl
All Classes and Interfaces|All Packages|Serialized Form