Index

A C D E F G H I J L M O P R S U V 
All Classes and Interfaces|All Packages|Serialized Form

A

addTokenCookie(HttpServletResponse, String) - Method in class com.greenloop.auth_service.util.CookieUtil
Adds JWT token as HTTP-only cookie to the response.
ADMIN - Enum constant in enum class com.greenloop.auth_service.model.UserRole
 
adminSignup(SignUpRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.controller.AuthController
Registers a new admin user.
adminSignup(SignUpRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.service.AuthService
Registers a new user with the ADMIN role.
ApiResponse - Class in com.greenloop.auth_service.dto
 
ApiResponse() - Constructor for class com.greenloop.auth_service.dto.ApiResponse
 
ApplicationConfig - Class in com.greenloop.auth_service.config
 
ApplicationConfig() - Constructor for class com.greenloop.auth_service.config.ApplicationConfig
 
AuthController - Class in com.greenloop.auth_service.controller
REST controller exposing authentication endpoints such as signup, login, logout and password reset.
AuthController() - Constructor for class com.greenloop.auth_service.controller.AuthController
 
authenticationManager(AuthenticationConfiguration) - Method in class com.greenloop.auth_service.config.ApplicationConfig
 
authenticationProvider(UserDetailsService, PasswordEncoder) - Method in class com.greenloop.auth_service.config.ApplicationConfig
 
AuthResponse - Class in com.greenloop.auth_service.dto
 
AuthResponse() - Constructor for class com.greenloop.auth_service.dto.AuthResponse
 
AuthService - Class in com.greenloop.auth_service.service
Core authentication workflows: signup, admin signup, login, logout, and password reset.
AuthService() - Constructor for class com.greenloop.auth_service.service.AuthService
 
AuthServiceApplication - Class in com.greenloop.auth_service
Entry point for the Auth Service application.
AuthServiceApplication() - Constructor for class com.greenloop.auth_service.AuthServiceApplication
 

C

checkOtp(String, String) - Method in class com.greenloop.auth_service.controller.VerificationController
Validates the OTP for the provided email.
com.greenloop.auth_service - package com.greenloop.auth_service
 
com.greenloop.auth_service.config - package com.greenloop.auth_service.config
 
com.greenloop.auth_service.controller - package com.greenloop.auth_service.controller
 
com.greenloop.auth_service.dto - package com.greenloop.auth_service.dto
 
com.greenloop.auth_service.exception - package com.greenloop.auth_service.exception
 
com.greenloop.auth_service.model - package com.greenloop.auth_service.model
 
com.greenloop.auth_service.repository - package com.greenloop.auth_service.repository
 
com.greenloop.auth_service.security - package com.greenloop.auth_service.security
 
com.greenloop.auth_service.service - package com.greenloop.auth_service.service
 
com.greenloop.auth_service.util - package com.greenloop.auth_service.util
 
commence(HttpServletRequest, HttpServletResponse, AuthenticationException) - Method in class com.greenloop.auth_service.security.JwtAuthenticationEntryPoint
 
CookieUtil - Class in com.greenloop.auth_service.util
Utility for adding, reading, and deleting JWT cookies.
CookieUtil() - Constructor for class com.greenloop.auth_service.util.CookieUtil
 
createAndSendOtp(String) - Method in class com.greenloop.auth_service.service.VerificationService
 

D

deleteTokenCookie(HttpServletResponse) - Method in class com.greenloop.auth_service.util.CookieUtil
Deletes the token cookie (for logout).
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.greenloop.auth_service.security.JwtAuthFilter
 

E

EmailAlreadyExistsException - Exception Class in com.greenloop.auth_service.exception
 
EmailAlreadyExistsException(String) - Constructor for exception class com.greenloop.auth_service.exception.EmailAlreadyExistsException
 
EmailService - Class in com.greenloop.auth_service.service
 
EmailService() - Constructor for class com.greenloop.auth_service.service.EmailService
 
EmailTemplateUtil - Class in com.greenloop.auth_service.util
 
EmailTemplateUtil() - Constructor for class com.greenloop.auth_service.util.EmailTemplateUtil
 
extractAllClaims(String) - Method in class com.greenloop.auth_service.security.JwtService
Parses and validates the token, returning all claims or throwing a descriptive exception for invalid/expired tokens.
extractClaim(String, Function<Claims, T>) - Method in class com.greenloop.auth_service.security.JwtService
Extracts a single claim using the provided resolver function.
extractExpiration(String) - Method in class com.greenloop.auth_service.security.JwtService
Returns expiration date of the token.
extractRole(String) - Method in class com.greenloop.auth_service.security.JwtService
Returns the role claim from the token.
extractUserId(String) - Method in class com.greenloop.auth_service.security.JwtService
Returns the user id (subject) from the token.
extractUsername(String) - Method in class com.greenloop.auth_service.security.JwtService
Returns the email (username) from the token.

F

findByEmail(String) - Method in interface com.greenloop.auth_service.repository.UserRepository
 
findByExpiryDateBeforeAndIsUsedIsFalse(Instant) - Method in interface com.greenloop.auth_service.repository.VerificationTokenRepository
 
findByToken(String) - Method in interface com.greenloop.auth_service.repository.VerificationTokenRepository
 
findByUserId(UUID) - Method in interface com.greenloop.auth_service.repository.VerificationTokenRepository
 

G

generateToken(User) - Method in class com.greenloop.auth_service.security.JwtService
Generates a signed JWT for the given user with role and email claims.
getAuthorities() - Method in class com.greenloop.auth_service.model.User
 
getPassword() - Method in class com.greenloop.auth_service.model.User
 
getTokenFromCookie(HttpServletRequest) - Method in class com.greenloop.auth_service.util.CookieUtil
Extracts JWT token from cookies.
getUsername() - Method in class com.greenloop.auth_service.model.User
 
GlobalExceptionHandler - Class in com.greenloop.auth_service.exception
 
GlobalExceptionHandler() - Constructor for class com.greenloop.auth_service.exception.GlobalExceptionHandler
 

H

handleAuthenticationExceptions(Exception) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleEmailAlreadyExists(EmailAlreadyExistsException) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleGenericException(Exception) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleIncompleteVerification(VerificationNotCompleteException) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleOTPValidationException(OtpValidationException) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleResourceNotFoundException(ResourceNotFoundException) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 
handleUserAlreadyVerifiedException(UserAlreadyVerifiedException) - Method in class com.greenloop.auth_service.exception.GlobalExceptionHandler
 

I

InvalidCredentialsException - Exception Class in com.greenloop.auth_service.exception
 
InvalidCredentialsException(String) - Constructor for exception class com.greenloop.auth_service.exception.InvalidCredentialsException
 
isAccountNonExpired() - Method in class com.greenloop.auth_service.model.User
 
isAccountNonLocked() - Method in class com.greenloop.auth_service.model.User
 
isCredentialsNonExpired() - Method in class com.greenloop.auth_service.model.User
 
isEnabled() - Method in class com.greenloop.auth_service.model.User
 
isExpired() - Method in class com.greenloop.auth_service.model.VerificationToken
 
isTokenExpired(String) - Method in class com.greenloop.auth_service.security.JwtService
Indicates whether the token is expired.
isTokenValid(String) - Method in class com.greenloop.auth_service.security.JwtService
Validates the token structure/signature and expiration.
isTokenValid(String, UserDetails) - Method in class com.greenloop.auth_service.security.JwtService
Validates the token against the given user details.

J

JwtAuthenticationEntryPoint - Class in com.greenloop.auth_service.security
 
JwtAuthenticationEntryPoint() - Constructor for class com.greenloop.auth_service.security.JwtAuthenticationEntryPoint
 
JwtAuthFilter - Class in com.greenloop.auth_service.security
Servlet filter that extracts JWT from cookie or Authorization header and populates Spring Security context if valid.
JwtAuthFilter() - Constructor for class com.greenloop.auth_service.security.JwtAuthFilter
 
JwtService - Class in com.greenloop.auth_service.security
Utility service for generating and validating JWT tokens.
JwtService() - Constructor for class com.greenloop.auth_service.security.JwtService
 

L

login(LoginRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.controller.AuthController
Authenticates a user and issues a JWT cookie.
login(LoginRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.service.AuthService
Authenticates a user and sets JWT in cookie.
LoginRequest - Class in com.greenloop.auth_service.dto
 
LoginRequest() - Constructor for class com.greenloop.auth_service.dto.LoginRequest
 
logout(HttpServletResponse) - Method in class com.greenloop.auth_service.controller.AuthController
Clears the JWT cookie to log out the user.
logout(HttpServletResponse) - Method in class com.greenloop.auth_service.service.AuthService
Logs out user by clearing the auth cookie.

M

main(String[]) - Static method in class com.greenloop.auth_service.AuthServiceApplication
Boots the Spring application.

O

onUpdate() - Method in class com.greenloop.auth_service.model.User
 
OtpValidationException - Exception Class in com.greenloop.auth_service.exception
 
OtpValidationException(String) - Constructor for exception class com.greenloop.auth_service.exception.OtpValidationException
 
otpVerificationEmail(String) - Static method in class com.greenloop.auth_service.util.EmailTemplateUtil
 

P

PasswordChangeRequest - Class in com.greenloop.auth_service.dto
 
PasswordChangeRequest() - Constructor for class com.greenloop.auth_service.dto.PasswordChangeRequest
 
passwordEncoder() - Method in class com.greenloop.auth_service.config.ApplicationConfig
 

R

resetPassword(String, PasswordChangeRequest) - Method in class com.greenloop.auth_service.controller.AuthController
Resets password for the authenticated user.
resetPassword(String, PasswordChangeRequest) - Method in class com.greenloop.auth_service.service.AuthService
 
ResourceNotFoundException - Exception Class in com.greenloop.auth_service.exception
 
ResourceNotFoundException(String) - Constructor for exception class com.greenloop.auth_service.exception.ResourceNotFoundException
 

S

SecurityConfiguration - Class in com.greenloop.auth_service.security
Spring Security configuration for stateless JWT authentication.
SecurityConfiguration() - Constructor for class com.greenloop.auth_service.security.SecurityConfiguration
 
securityFilterChain(HttpSecurity) - Method in class com.greenloop.auth_service.security.SecurityConfiguration
Configures HTTP security with public, admin, and authenticated routes.
sendOtp(String) - Method in class com.greenloop.auth_service.controller.VerificationController
Sends a one-time password (OTP) to the given email.
sendOtpEmail(String, String) - Method in class com.greenloop.auth_service.service.EmailService
Sends an HTML OTP verification email to the user.
signup(SignUpRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.controller.AuthController
Registers a new end-user and sets a JWT in an HTTP-only cookie.
signup(SignUpRequest, HttpServletResponse) - Method in class com.greenloop.auth_service.service.AuthService
Registers a new user and sets JWT in cookie.
SignUpRequest - Class in com.greenloop.auth_service.dto
 
SignUpRequest() - Constructor for class com.greenloop.auth_service.dto.SignUpRequest
 

U

User - Class in com.greenloop.auth_service.model
 
User() - Constructor for class com.greenloop.auth_service.model.User
 
USER - Enum constant in enum class com.greenloop.auth_service.model.UserRole
 
UserAlreadyVerifiedException - Exception Class in com.greenloop.auth_service.exception
 
UserAlreadyVerifiedException(String) - Constructor for exception class com.greenloop.auth_service.exception.UserAlreadyVerifiedException
 
userDetailsService() - Method in class com.greenloop.auth_service.config.ApplicationConfig
 
UserRepository - Interface in com.greenloop.auth_service.repository
 
UserRole - Enum Class in com.greenloop.auth_service.model
 

V

valueOf(String) - Static method in enum class com.greenloop.auth_service.model.UserRole
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.greenloop.auth_service.model.UserRole
Returns an array containing the constants of this enum class, in the order they are declared.
VerificationController - Class in com.greenloop.auth_service.controller
Endpoints for sending and validating email verification OTP codes.
VerificationController() - Constructor for class com.greenloop.auth_service.controller.VerificationController
 
VerificationNotCompleteException - Exception Class in com.greenloop.auth_service.exception
 
VerificationNotCompleteException(String) - Constructor for exception class com.greenloop.auth_service.exception.VerificationNotCompleteException
 
VerificationService - Class in com.greenloop.auth_service.service
 
VerificationService() - Constructor for class com.greenloop.auth_service.service.VerificationService
 
VerificationToken - Class in com.greenloop.auth_service.model
 
VerificationToken() - Constructor for class com.greenloop.auth_service.model.VerificationToken
 
VerificationTokenRepository - Interface in com.greenloop.auth_service.repository
 
verifyOtp(String, String) - Method in class com.greenloop.auth_service.service.VerificationService
 
A C D E F G H I J L M O P R S U V 
All Classes and Interfaces|All Packages|Serialized Form