MCPcopy Create free account

hub / github.com/NidhalNaffati/secure-user-platform-with-springboot3-vue3-jwt / functions

Functions197 in github.com/NidhalNaffati/secure-user-platform-with-springboot3-vue3-jwt

↓ 26 callersMethodfindByEmail
(String email)
backend/src/main/java/com/nidhal/backend/repository/UserRepository.java:21
↓ 18 callersMethodexistsByEmail
(String email)
backend/src/main/java/com/nidhal/backend/repository/UserRepository.java:18
↓ 14 callersMethodbuildResponseEntity
(ErrorResponse response)
backend/src/main/java/com/nidhal/backend/exception/RestExceptionHandler.java:154
↓ 14 callersMethodfindUserByEmail
Finds a user account by the specified email address. @param email the email address to search for @return the User object corresponding to the specif
backend/src/main/java/com/nidhal/backend/service/UserService.java:71
↓ 12 callersMethodextractUsername
Extracts the username from a JWT token. @param token the JWT token to extract the username from @return the username, or null if the token is invalid
backend/src/main/java/com/nidhal/backend/service/JwtService.java:66
↓ 9 callersMethodemailExists
Determines whether a user account with the specified email address already exists. @param email the email address to check for @return true if a user
backend/src/main/java/com/nidhal/backend/service/UserService.java:59
↓ 9 callersMethodgetPassword
()
backend/src/main/java/com/nidhal/backend/entity/UserDetailsImpl.java:13
↓ 8 callersMethodfindByToken
(String token)
backend/src/main/java/com/nidhal/backend/repository/TokenRepository.java:28
↓ 8 callersMethodgenerateToken
(String username, long expirationTimeInMs)
backend/src/test/java/com/nidhal/backend/service/JwtServiceTest.java:52
↓ 8 callersMethodgetSignInKey
Retrieves the key to be used to sign and validate JWT tokens based on the configured secret key. @return a {@link Key} object representing the signin
backend/src/main/java/com/nidhal/backend/service/JwtService.java:211
↓ 8 callersMethodvalidateCredentials
Validates the specified email address and password, and returns the corresponding User object if the credentials are valid. @param email the email
backend/src/main/java/com/nidhal/backend/service/UserService.java:139
↓ 7 callersMethodisTokenValid
Checks if the given JWT token is valid for the provided user. @param token The JWT token to validate. @param userDetails user to validate the t
backend/src/main/java/com/nidhal/backend/service/JwtService.java:175
↓ 7 callersMethodrefreshToken
Refreshes the JWT token. @param request HTTP request. @param response HTTP response. @return The new JWT token. @throws IOException If an error occu
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:239
↓ 7 callersMethodrevokeToken
Revokes a token by setting it as expired and revoked. @param token the token to revoke
backend/src/main/java/com/nidhal/backend/service/TokenService.java:24
↓ 7 callersMethodsaveUser
Saves a new user account to the database, after checking that no other account with the same email address exists. @param user the User object to sav
backend/src/main/java/com/nidhal/backend/service/UserService.java:83
↓ 7 callersMethodtoUser
()
backend/src/main/java/com/nidhal/backend/requests/RegisterRequest.java:35
↓ 6 callersMethodextractExpiration
Extracts the expiration date from a JWT token. @param token the JWT token to extract the expiration date from @return the expiration date, or null if
backend/src/main/java/com/nidhal/backend/service/JwtService.java:76
↓ 6 callersMethodgenerateAccessToken
Generate Access Token for a given user. <p> The token contains the user's username as the subject, the current time as the issued at date and the expi
backend/src/main/java/com/nidhal/backend/service/JwtService.java:154
↓ 6 callersMethodgenerateTokenForResetPassword
Generates token for the password reset. <p> @param username the username to generate the token for @return the generated token
backend/src/main/java/com/nidhal/backend/service/JwtService.java:141
↓ 6 callersMethodregisterUser
Registers a new user with the provided registration details. <p> This method performs the following steps: 1. Validates the password and password conf
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:98
↓ 6 callersMethodsaveUserToken
Saves a token in the database. @param user the user to save the token for @param jwtToken the token to save
backend/src/main/java/com/nidhal/backend/service/TokenService.java:56
↓ 6 callersMethodupdatePassword
Updates the password for the user account with the specified email address, after validating that the new password and the confirmation password match
backend/src/main/java/com/nidhal/backend/service/UserService.java:114
↓ 5 callersMethodisExpired
()
backend/src/main/java/com/nidhal/backend/entity/VerificationCode.java:40
↓ 5 callersMethodloadUserByUsername
Loads a user from the database by their email address. @param username the username identifying the user whose data is required. @return a UserDetail
backend/src/main/java/com/nidhal/backend/service/UserService.java:44
↓ 5 callersMethodlogout
( HttpServletRequest request, HttpServletResponse response, Authentication
backend/src/main/java/com/nidhal/backend/service/LogoutService.java:25
↓ 5 callersMethodsendResetPasswordRequestToUser
Sends a password reset request email to the specified user email address, using the provided reset password link <p> URL and first name of the user.
backend/src/main/java/com/nidhal/backend/service/EmailService.java:136
↓ 4 callersMethodenableUser
Enables the user account with the specified email address. @param email the email address of the user account to enable @throws UserNotFoundException
backend/src/main/java/com/nidhal/backend/service/UserService.java:173
↓ 4 callersMethodgenerateRefreshToken
Generates refresh token for a given user. <p> @param username the username to generate the token for @return the generated refresh token
backend/src/main/java/com/nidhal/backend/service/JwtService.java:119
↓ 4 callersMethodgenerateTokenForEnableAccount
Generates token for the account activation. <p> @param username the username to generate the token for @return the generated token
backend/src/main/java/com/nidhal/backend/service/JwtService.java:130
↓ 4 callersMethodgetUsername
()
backend/src/main/java/com/nidhal/backend/entity/UserDetailsImpl.java:18
↓ 4 callersMethodrevokeAllUserTokens
Revokes all valid tokens for a user. @param user the user to revoke the tokens for
backend/src/main/java/com/nidhal/backend/service/TokenService.java:71
↓ 4 callersMethodsendActivationLink
Sends an activation link email to the specified user email address, using the provided activation link URL and <p> first name of the user. @param ema
backend/src/main/java/com/nidhal/backend/service/EmailService.java:120
↓ 3 callersMethodauthenticate
Authenticates the user and generates a JWT token. @param request the authentication request containing email and password @return the authentication
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:53
↓ 3 callersMethodextractAllClaims
Extracts all the claims from a given JWT token. @param token the JWT token to extract the claims from @return a {@link Claims} object representing th
backend/src/main/java/com/nidhal/backend/service/JwtService.java:197
↓ 3 callersMethodextractClaim
Extracts a claim from a JWT token using a given function. @param token the JWT token to extract the claim from @param claimsResolver the fun
backend/src/main/java/com/nidhal/backend/service/JwtService.java:55
↓ 3 callersMethodgenerateToken
(String username, long expirationTimeInMs)
backend/src/main/java/com/nidhal/backend/service/JwtService.java:100
↓ 3 callersMethodisPasswordAndPasswordConfirmMatches
(RegisterRequest registerRequest)
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:225
↓ 3 callersMethodisTokenExpired
Determines if a given JWT token is expired. @param token the JWT token to check @return true if the token is expired, false otherwise
backend/src/main/java/com/nidhal/backend/service/JwtService.java:186
↓ 2 callersMethodcreateVerificationCode
(String email, VerificationCode.CodeType type)
backend/src/main/java/com/nidhal/backend/service/VerificationCodeService.java:37
↓ 2 callersMethodfindAllValidTokenByUser
(Long id)
backend/src/main/java/com/nidhal/backend/repository/TokenRepository.java:20
↓ 2 callersMethodgetUserClaims
Creates a map of custom claims for a given user. @param user the user to generate the claims for @return the map of custom claims
backend/src/main/java/com/nidhal/backend/service/JwtService.java:86
↓ 2 callersMethodhandleInvalidToken
(HttpServletResponse response)
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:160
↓ 2 callersMethodinvalidateAllCodes
(String email, VerificationCode.CodeType type)
backend/src/main/java/com/nidhal/backend/service/VerificationCodeService.java:76
↓ 2 callersMethodisEnabled
()
backend/src/main/java/com/nidhal/backend/entity/UserDetailsImpl.java:38
↓ 2 callersFunctionroleGuard
(to, from, next, role)
frontend/src/router/guards.js:40
↓ 2 callersMethodsendEmailWithVerificationCode
Sends an email with a verification code using the specified template
backend/src/main/java/com/nidhal/backend/service/EmailService.java:69
↓ 2 callersMethodsentEmailWithTemplate
Sends an email with a specified HTML template to the specified user email address, using the provided email subject, <p> URL and template. @param ema
backend/src/main/java/com/nidhal/backend/service/EmailService.java:155
↓ 2 callersMethodverifyCode
(String email, String code, VerificationCode.CodeType type)
backend/src/main/java/com/nidhal/backend/service/VerificationCodeService.java:61
↓ 1 callersMethodauthenticationProvider
Configures an AuthenticationProvider that uses the userDetailsService and passwordEncoder to authenticate users. @return AuthenticationProvider insta
backend/src/main/java/com/nidhal/backend/config/ApplicationConfig.java:47
↓ 1 callersMethodbuildAdminUser
()
backend/src/main/java/com/nidhal/backend/config/AdminInitializer.java:32
↓ 1 callersFunctioncollapseNavbar
()
frontend/src/assets/bootstrap/startup-modern.js:8
↓ 1 callersMethoddeleteAllByUser
(Long id)
backend/src/main/java/com/nidhal/backend/repository/TokenRepository.java:35
↓ 1 callersMethodenableUser
(String token)
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:217
↓ 1 callersMethodextractUsernameFromJwt
(String jwt)
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:166
↓ 1 callersMethodfindAllByEmailAndTypeAndUsedFalse
(String email, VerificationCode.CodeType type)
backend/src/main/java/com/nidhal/backend/repository/VerificationCodeRepository.java:16
↓ 1 callersMethodfindAllUsers
()
backend/src/main/java/com/nidhal/backend/repository/UserRepository.java:24
↓ 1 callersMethodfindByEmailAndCodeAndTypeAndUsedFalse
(String email, String code, VerificationCode.CodeType type)
backend/src/main/java/com/nidhal/backend/repository/VerificationCodeRepository.java:14
↓ 1 callersMethodfindLockedUsers
()
backend/src/main/java/com/nidhal/backend/repository/UserRepository.java:27
↓ 1 callersMethodfindUnlockedUsers
()
backend/src/main/java/com/nidhal/backend/repository/UserRepository.java:30
↓ 1 callersMethodgenerateVerificationCode
()
backend/src/main/java/com/nidhal/backend/service/VerificationCodeService.java:30
↓ 1 callersMethodgetAuthorities
()
backend/src/main/java/com/nidhal/backend/entity/UserDetailsImpl.java:43
↓ 1 callersMethodhandleMissingToken
(HttpServletResponse response, HttpServletRequest request)
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:155
↓ 1 callersMethodisAccountNonLocked
()
backend/src/main/java/com/nidhal/backend/entity/UserDetailsImpl.java:28
↓ 1 callersMethodisPublicEndpoint
(HttpServletRequest request)
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:146
↓ 1 callersMethodisTokenValid
(String jwt, UserDetailsImpl userDetails)
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:151
↓ 1 callersMethodlockUser
(String email)
backend/src/main/java/com/nidhal/backend/service/UserService.java:182
↓ 1 callersMethodpasswordEncoder
Configures a BCryptPasswordEncoder instance to encode passwords. This method is static to avoid the 'Relying upon circular' problem. @return Password
backend/src/main/java/com/nidhal/backend/config/ApplicationConfig.java:73
↓ 1 callersMethodrun
(ApplicationArguments args)
backend/src/main/java/com/nidhal/backend/config/AdminInitializer.java:45
↓ 1 callersMethodsendActivationCode
Sends an activation code email to the specified user @param email the email address of the user @param firstName the first name of the user @para
backend/src/main/java/com/nidhal/backend/service/EmailService.java:45
↓ 1 callersMethodsendResetPasswordCode
Sends a password reset code email to the specified user @param email the email address of the user @param firstName the first name of the user @p
backend/src/main/java/com/nidhal/backend/service/EmailService.java:59
↓ 1 callersMethodsendResetPasswordCodeToUser
(String email)
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:152
↓ 1 callersMethodunlockUser
(String email)
backend/src/main/java/com/nidhal/backend/service/UserService.java:191
↓ 1 callersMethodupDatePassword
(String token, String password, String passwordConfirm)
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:209
↓ 1 callersMethoduserDetailsService
Configures a UserDetailsService that uses the injected UserService to find a user by email. @return UserDetailsService instance
backend/src/main/java/com/nidhal/backend/config/ApplicationConfig.java:37
↓ 1 callersMethodverifyUserAccount
(String email, String code)
backend/src/main/java/com/nidhal/backend/service/AuthenticationService.java:140
MethodAccountLockedException
()
backend/src/main/java/com/nidhal/backend/exception/AccountLockedException.java:8
MethodEmailAlreadyExistsException
()
backend/src/main/java/com/nidhal/backend/exception/EmailAlreadyExistsException.java:7
MethodEmailService
(JavaMailSender javaMailSender, @Value("${spring.mail.username}") String senderEmail)
backend/src/main/java/com/nidhal/backend/service/EmailService.java:26
MethodErrorResponse
()
backend/src/main/java/com/nidhal/backend/exception/ErrorResponse.java:18
MethodInvalidVerificationCodeException
(String message)
backend/src/main/java/com/nidhal/backend/exception/InvalidVerificationCodeException.java:4
MethodPasswordDontMatchException
()
backend/src/main/java/com/nidhal/backend/exception/PasswordDontMatchException.java:7
MethodUserNotFoundException
(String message)
backend/src/main/java/com/nidhal/backend/exception/UserNotFoundException.java:7
MethodadminGreeting
()
backend/src/main/java/com/nidhal/backend/controller/AdminController.java:18
FunctionadminGuard
(to, from, next)
frontend/src/router/guards.js:64
Methodauthenticate
(@RequestBody AuthenticationRequest request)
backend/src/main/java/com/nidhal/backend/controller/AuthenticationController.java:33
Methodauthenticate_InvalidCredentials_ThrowsBadCredentialsException
()
backend/src/test/java/com/nidhal/backend/service/AuthenticationServiceTest.java:93
Methodauthenticate_ValidCredentials_ReturnsAuthenticationResponse
()
backend/src/test/java/com/nidhal/backend/service/AuthenticationServiceTest.java:71
FunctionauthenticatedGuard
(to, from, next)
frontend/src/router/guards.js:24
MethodauthenticationManager
Configures an AuthenticationManager using the AuthenticationConfiguration instance. @param config the AuthenticationConfiguration instance @return Au
backend/src/main/java/com/nidhal/backend/config/ApplicationConfig.java:62
MethodcontextLoads
()
backend/src/test/java/com/nidhal/backend/BackendApplicationTests.java:9
MethodcorsConfiguration
Creates a CorsConfigurationSource bean that allows cross-origin resource sharing. @return the CorsConfigurationSource object
backend/src/main/java/com/nidhal/backend/config/SecurityConfig.java:112
MethodcustomOpenAPI
()
backend/src/main/java/com/nidhal/backend/config/SwaggerConfig.java:35
MethoddeleteUser
(@PathVariable String email)
backend/src/main/java/com/nidhal/backend/controller/AdminController.java:38
MethoddeleteUser
(String email)
backend/src/main/java/com/nidhal/backend/service/UserService.java:213
MethoddisableUser
(@PathVariable String email)
backend/src/main/java/com/nidhal/backend/controller/AdminController.java:50
MethoddoFilterInternal
( @NonNull HttpServletRequest request, @NonNull HttpServletResponse response, @NonNull
backend/src/main/java/com/nidhal/backend/filter/JwtAuthorizationFilter.java:71
MethodenableUser
(@PathVariable String email)
backend/src/main/java/com/nidhal/backend/controller/AdminController.java:44
MethodenableUser_ShouldCallUserServiceToEnableUser
()
backend/src/test/java/com/nidhal/backend/service/AuthenticationServiceTest.java:286
MethodextractAllClaims_ShouldReturnExpectedClaims
()
backend/src/test/java/com/nidhal/backend/service/JwtServiceTest.java:235
MethodextractClaim_ShouldReturnExpectedClaimValue
()
backend/src/test/java/com/nidhal/backend/service/JwtServiceTest.java:64
next →1–100 of 197, ranked by callers