Index

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

A

accessToken() - Method in record class vaultWeb.services.auth.LoginResult
Returns the value of the accessToken record component.
ADMIN - Enum constant in enum class vaultWeb.models.enums.Role
 
AdminAccessDeniedException - Exception Class in vaultWeb.exceptions
Thrown when a user attempts to perform an action requiring admin privileges but does not have the necessary permissions.
AdminAccessDeniedException(Long, Long) - Constructor for exception class vaultWeb.exceptions.AdminAccessDeniedException
Constructs a new AdminAccessDeniedException for a specific user and group.
AdminAccessDeniedException(String) - Constructor for exception class vaultWeb.exceptions.AdminAccessDeniedException
Constructs a new AdminAccessDeniedException with a custom message.
AdminOnly - Annotation Interface in vaultWeb.security.annotations
 
AdminOnlyAspect - Class in vaultWeb.security.aspects
Aspect that enforces admin-only access for methods annotated with AdminOnly.
AdminOnlyAspect() - Constructor for class vaultWeb.security.aspects.AdminOnlyAspect
 
afterHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Exception) - Method in class vaultWeb.config.websocket.JwtHandshakeInterceptor
Invoked after the handshake is done.
AlreadyMemberException - Exception Class in vaultWeb.exceptions
Thrown when a user tries to join a group they are already a member of.
AlreadyMemberException(Long, Long) - Constructor for exception class vaultWeb.exceptions.AlreadyMemberException
Constructs a new AlreadyMemberException for a specific user and group.
AlreadyVotedException - Exception Class in vaultWeb.exceptions
Thrown when a user tries to vote for a poll they are already voted in.
AlreadyVotedException(Long, Long) - Constructor for exception class vaultWeb.exceptions.AlreadyVotedException
Constructs a new AlreadyVotedException for a specific user and poll.
anonymous() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the anonymous record component.
ApiRateLimit - Annotation Interface in vaultWeb.security.annotations
 
authenticationManager(HttpSecurity, PasswordEncoder) - Method in class vaultWeb.config.SecurityConfig
Configures and provides the AuthenticationManager bean.
AuthService - Class in vaultWeb.services.auth
Service class responsible for handling authentication and user session-related operations.
AuthService() - Constructor for class vaultWeb.services.auth.AuthService
 

B

BackendApplication - Class in vaultWeb
Main entry point for the backend application.
BackendApplication() - Constructor for class vaultWeb.BackendApplication
 
beforeHandshake(ServerHttpRequest, ServerHttpResponse, WebSocketHandler, Map<String, Object>) - Method in class vaultWeb.config.websocket.JwtHandshakeInterceptor
Intercepts the handshake request before it is processed.
buildDashboard(User) - Method in class vaultWeb.services.DashboardService
Builds the full dashboard payload for a given user.

C

capacity() - Element in annotation interface vaultWeb.security.annotations.ApiRateLimit
 
changePassword(ChangePasswordRequest) - Method in class vaultWeb.controllers.UserController
 
changePassword(User, String, String) - Method in class vaultWeb.services.UserService
Allows an authenticated user to change their password after validating the old password.
ChangePasswordRequest - Class in vaultWeb.dtos.user
 
ChangePasswordRequest() - Constructor for class vaultWeb.dtos.user.ChangePasswordRequest
 
ChatController - Class in vaultWeb.controllers
Controller responsible for handling WebSocket-based chat functionality.
ChatController() - Constructor for class vaultWeb.controllers.ChatController
 
ChatMessage - Class in vaultWeb.models
 
ChatMessage() - Constructor for class vaultWeb.models.ChatMessage
 
ChatMessageDto - Class in vaultWeb.dtos
 
ChatMessageDto() - Constructor for class vaultWeb.dtos.ChatMessageDto
 
ChatMessageRepository - Interface in vaultWeb.repositories
 
ChatService - Class in vaultWeb.services
Service responsible for handling chat-related operations.
ChatService() - Constructor for class vaultWeb.services.ChatService
 
checkAdmin(JoinPoint) - Method in class vaultWeb.security.aspects.AdminOnlyAspect
Advice that runs before any method annotated with AdminOnly.
checkUsernameExists(String) - Method in class vaultWeb.controllers.UserController
 
cipherTextBase64 - Variable in class vaultWeb.security.EncryptionUtil.EncryptResult
Base64-encoded ciphertext
cleanup() - Method in class vaultWeb.services.auth.RefreshTokenCleanupService
 
commence(HttpServletRequest, HttpServletResponse, AuthenticationException) - Method in class vaultWeb.security.JwtAuthenticationEntryPoint
 
configureClientInboundChannel(ChannelRegistration) - Method in class vaultWeb.config.websocket.WebSocketConfig
Configure the inbound channel for STOMP messages from clients.
configureMessageBroker(MessageBrokerRegistry) - Method in class vaultWeb.config.websocket.WebSocketConfig
Configure message broker with a simple in-memory broker for topics and application destination prefix for incoming messages.
constantTimeEquals(String, String) - Static method in class vaultWeb.security.TokenHashUtil
 
content() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns the value of the content record component.
CorsConfig - Class in vaultWeb.config
Global CORS configuration Source for the application.
CorsConfig() - Constructor for class vaultWeb.config.CorsConfig
 
corsConfigurationSource() - Method in class vaultWeb.config.CorsConfig
Defines a CORS Configuration source that applies the CORS configuration to all endpoints.
countByGroup(Group) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
countByGroupAndRole(Group, Role) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
countBySender(User) - Method in interface vaultWeb.repositories.ChatMessageRepository
 
create(User, HttpServletResponse) - Method in class vaultWeb.services.auth.RefreshTokenService
Creates and issues a new refresh token for the given user.
createdAt() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the createdAt record component.
createGroup(GroupDto) - Method in class vaultWeb.controllers.GroupController
Creates a new group.
createGroup(GroupDto, User) - Method in class vaultWeb.services.GroupService
Creates a new group with the given DTO and sets the creator as admin.
createPoll(Long, PollRequestDto) - Method in class vaultWeb.controllers.PollController
Creates a new poll in the specified group.
createPoll(Group, User, PollRequestDto) - Method in class vaultWeb.services.PollService
Creates a new poll in the specified group by the given author.
customOpenAPI() - Method in class vaultWeb.config.OpenApiConfig
Creates a custom OpenAPI instance with JWT bearer authentication configured.

D

DashboardController - Class in vaultWeb.controllers
Provides aggregated user-centric data to power the dashboard UI.
DashboardController() - Constructor for class vaultWeb.controllers.DashboardController
 
DashboardService - Class in vaultWeb.services
Aggregates all pieces of information a dashboard needs about a user so the frontend can render it with a single API call.
DashboardService() - Constructor for class vaultWeb.services.DashboardService
 
deadline() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the deadline record component.
decrypt(String, String) - Method in class vaultWeb.security.EncryptionUtil
Decrypts a Base64-encoded ciphertext using the provided Base64-encoded IV.
decrypt(String, String) - Method in class vaultWeb.services.ChatService
Decrypts a previously encrypted chat message.
DecryptionFailedException - Exception Class in vaultWeb.exceptions
Thrown when decrypt failed.
DecryptionFailedException(String, Throwable) - Constructor for exception class vaultWeb.exceptions.DecryptionFailedException
Constructs a new DecryptionFailedException for a specific message and cause.
deleteByGroupAndUser(Group, User) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
deleteExpiredAndOldRevoked(Instant, Instant) - Method in interface vaultWeb.repositories.RefreshTokenRepository
 
deleteGroup(Long) - Method in class vaultWeb.controllers.GroupController
Deletes a group.
deleteGroup(Long) - Method in class vaultWeb.services.GroupService
Deletes a group by its ID.
deletePoll(Long, Long) - Method in class vaultWeb.controllers.PollController
Deletes a poll from a group.
deletePoll(Long, Long, User) - Method in class vaultWeb.services.PollService
Deletes a poll authored by a user.
description() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the description record component.
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class vaultWeb.security.RateLimitFilter
 
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class vaultWeb.security.JwtAuthFilter
Filters each HTTP request, performing JWT-based authentication.
DuplicateUsernameException - Exception Class in vaultWeb.exceptions
Thrown when a user tries to register with a username that already exists.
DuplicateUsernameException(String) - Constructor for exception class vaultWeb.exceptions.DuplicateUsernameException
Constructs a new DuplicateUsernameException with a custom message.

E

encrypt(String) - Method in class vaultWeb.security.EncryptionUtil
Encrypts a plaintext string using AES-GCM with a randomly generated IV.
EncryptionConfig - Class in vaultWeb.config
 
EncryptionConfig() - Constructor for class vaultWeb.config.EncryptionConfig
 
EncryptionFailedException - Exception Class in vaultWeb.exceptions
Thrown when encrypt failed.
EncryptionFailedException(String, Throwable) - Constructor for exception class vaultWeb.exceptions.EncryptionFailedException
Constructs a new EncryptionFailedException for a specific message and cause.
encryptionUtil() - Method in class vaultWeb.config.EncryptionConfig
 
EncryptionUtil - Class in vaultWeb.security
Utility class for AES-GCM encryption and decryption of strings.
EncryptionUtil(String) - Constructor for class vaultWeb.security.EncryptionUtil
Creates an EncryptionUtil instance with a given Base64-encoded AES key.
EncryptionUtil.EncryptResult - Class in vaultWeb.security
Result object for the encryption operation.
EncryptResult(String, String) - Constructor for class vaultWeb.security.EncryptionUtil.EncryptResult
Constructs a new EncryptResult with the given ciphertext and IV.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.dtos.PrivateChatDto
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class vaultWeb.services.auth.LoginResult
Indicates whether some other object is "equal to" this one.
existsByOption_PollAndUser(Poll, User) - Method in interface vaultWeb.repositories.PollVoteRepository
 
existsByUsername(String) - Method in interface vaultWeb.repositories.UserRepository
 
extractTokenId(String) - Method in class vaultWeb.security.JwtUtil
Extracts the refresh token identifier (jti) from a refresh token.
extractUsername(String) - Method in class vaultWeb.security.JwtUtil
Extracts the username (subject) from the provided JWT token.
extractUsernameFromRequest(HttpServletRequest) - Method in class vaultWeb.security.JwtUtil
Extracts username from Authorization header if present and valid

F

filterChain(HttpSecurity) - Method in class vaultWeb.config.SecurityConfig
Configures the security filter chain for HTTP requests.
findAllByGroup(Group) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
findAllByUser(User) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
findByGroupAndUser(Group, User) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
findByGroupId(Long) - Method in interface vaultWeb.repositories.PollRepository
 
findByGroupIdAndUserId(Long, Long) - Method in interface vaultWeb.repositories.GroupMemberRepository
 
findByGroupIdIn(List<Long>) - Method in interface vaultWeb.repositories.PollRepository
 
findByPrivateChatIdOrderByTimestampAsc(Long) - Method in interface vaultWeb.repositories.ChatMessageRepository
 
findByTokenIdAndRevokedFalse(String) - Method in interface vaultWeb.repositories.RefreshTokenRepository
 
findByUser1AndUser2(User, User) - Method in interface vaultWeb.repositories.PrivateChatRepository
 
findByUser1OrUser2(User, User) - Method in interface vaultWeb.repositories.PrivateChatRepository
 
findByUser2AndUser1(User, User) - Method in interface vaultWeb.repositories.PrivateChatRepository
 
findByUsername(String) - Method in interface vaultWeb.repositories.UserRepository
 
findTop10BySenderOrderByTimestampDesc(User) - Method in interface vaultWeb.repositories.ChatMessageRepository
 
findTop1ByPrivateChatOrderByTimestampDesc(PrivateChat) - Method in interface vaultWeb.repositories.ChatMessageRepository
 

G

generateRefreshToken(User, String) - Method in class vaultWeb.security.JwtUtil
Generates a signed refresh token JWT for the given user.
generateToken(User) - Method in class vaultWeb.security.JwtUtil
Generates a signed JWT token for the given user.
getAllUsers() - Method in class vaultWeb.controllers.UserController
 
getAllUsers() - Method in class vaultWeb.services.UserService
Retrieves a list of all registered users.
getAuthentication(String) - Method in class vaultWeb.security.JwtUtil
 
getCurrentUser() - Method in class vaultWeb.services.auth.AuthService
Retrieves the currently authenticated user from the SecurityContext.
getCurrentUserDashboard() - Method in class vaultWeb.controllers.DashboardController
 
getDashboardForUser(String) - Method in class vaultWeb.controllers.DashboardController
 
getGroupById(Long) - Method in class vaultWeb.controllers.GroupController
Retrieves a group by its ID.
getGroupById(Long) - Method in class vaultWeb.services.GroupService
Retrieves a group by its ID.
getGroupMembers(Long) - Method in class vaultWeb.controllers.GroupController
Retrieves all members of a given group.
getGroups() - Method in class vaultWeb.controllers.GroupController
Retrieves all public groups.
getMembers(Long) - Method in class vaultWeb.services.GroupService
Retrieves all members of a group.
getOrCreatePrivateChat(String, String) - Method in class vaultWeb.controllers.PrivateChatController
 
getOrCreatePrivateChat(String, String) - Method in class vaultWeb.services.PrivateChatService
Retrieves an existing private chat between two users or creates a new one if none exists.
getPolls(Long) - Method in class vaultWeb.controllers.PollController
Retrieves all polls of a given group.
getPollsByGroup(Long, User) - Method in class vaultWeb.services.PollService
Retrieves all polls for a given group.
getPrivateChatMessages(Long) - Method in class vaultWeb.controllers.PrivateChatController
 
getPublicGroups() - Method in class vaultWeb.services.GroupService
Retrieves all public groups.
getRetryAfterSeconds() - Method in exception class vaultWeb.exceptions.RateLimitExceededException
 
GlobalExceptionHandler - Class in vaultWeb.exceptions
Global exception handler for all controllers in the "vaultWeb.controllers" package.
GlobalExceptionHandler() - Constructor for class vaultWeb.exceptions.GlobalExceptionHandler
 
Group - Class in vaultWeb.models
 
Group(GroupDto) - Constructor for class vaultWeb.models.Group
 
GroupController - Class in vaultWeb.controllers
Controller for managing groups within the application.
GroupController() - Constructor for class vaultWeb.controllers.GroupController
 
groupCount() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns the value of the groupCount record component.
GroupDto - Class in vaultWeb.dtos
 
GroupDto() - Constructor for class vaultWeb.dtos.GroupDto
 
groupId() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns the value of the groupId record component.
groupId() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the groupId record component.
GroupMember - Class in vaultWeb.models
 
GroupMember(Group, User, Role) - Constructor for class vaultWeb.models.GroupMember
 
GroupMemberRepository - Interface in vaultWeb.repositories
 
groupName() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the groupName record component.
GroupNotFoundException - Exception Class in vaultWeb.exceptions.notfound
 
GroupNotFoundException(String) - Constructor for exception class vaultWeb.exceptions.notfound.GroupNotFoundException
 
GroupRepository - Interface in vaultWeb.repositories
 
groups() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns the value of the groups record component.
GroupService - Class in vaultWeb.services
Service class for managing groups, including creating, updating, joining, leaving, and managing group members.
GroupService() - Constructor for class vaultWeb.services.GroupService
 
GroupSummary(Long, String, String, String, boolean, int, Instant, int) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Creates an instance of a GroupSummary record class.

H

handleAccessDenied(AccessDeniedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles AccessDeniedException and returns 403 Forbidden.
handleAdminAccessDenied(AdminAccessDeniedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles AdminAccessDeniedException and returns 403 Forbidden.
handleAlreadyMember(AlreadyMemberException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles AlreadyMemberException and returns 409 Conflict.
handleAlreadyVoted(AlreadyVotedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles AlreadyVotedException and returns 400 Bad Request.
handleBadCredentials(BadCredentialsException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles BadCredentialsException (invalid login) and returns 403 Forbidden.
handleDecryptionFailed(DecryptionFailedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles DecryptionFailedException and returns 500 Internal Server Error.
handleDuplicateUsername(DuplicateUsernameException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles DuplicateUsernameException and returns 409 Conflict.
handleEncryptionFailed(EncryptionFailedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles EncryptionFailedException and returns 500 Internal Server Error.
handleGroupNotFound(GroupNotFoundException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles GroupNotFoundException and returns 404 Not Found.
handleNotMember(NotMemberException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles NotMemberException and returns 403 Forbidden.
handlePollDoesNotBelongToGroup(PollDoesNotBelongToGroupException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles PollDoesNotBelongToGroupException and returns 404 Not Found.
handlePollOptionNotFound(PollOptionNotFoundException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles PollOptionNotFoundException and returns 404 Not Found.
handleRateLimitExceededException(RateLimitExceededException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles RateLimitExceededException and returns 429 Limit Exceeded.
handleRuntimeException(RuntimeException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles any other RuntimeException and returns 500 Internal Server Error.
handleUnauthorized(UnauthorizedException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles UnauthorizedException and returns 401 Unauthorized.
handleUserNotFound(UserNotFoundException) - Method in class vaultWeb.exceptions.GlobalExceptionHandler
Handles UserNotFoundException and returns 404 Not Found.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.dtos.PrivateChatDto
Returns a hash code value for this object.
hashCode() - Method in record class vaultWeb.services.auth.LoginResult
Returns a hash code value for this object.

I

id() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the id record component.
id() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns the value of the id record component.
id() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the id record component.
id() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns the value of the id record component.
id() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns the value of the id record component.
id() - Method in record class vaultWeb.dtos.PrivateChatDto
Returns the value of the id record component.
isPublic() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the isPublic record component.
ivBase64 - Variable in class vaultWeb.security.EncryptionUtil.EncryptResult
Base64-encoded initialization vector (IV)

J

joinGroup(Long) - Method in class vaultWeb.controllers.GroupController
Current user joins a group.
joinGroup(Long, User) - Method in class vaultWeb.services.GroupService
Adds a user to a group as a regular member.
JwtAuthenticationEntryPoint - Class in vaultWeb.security
 
JwtAuthenticationEntryPoint() - Constructor for class vaultWeb.security.JwtAuthenticationEntryPoint
 
JwtAuthenticationException - Exception Class in vaultWeb.security.exception
Raised when JWT authentication fails (missing, expired, or invalid token).
JwtAuthenticationException(String) - Constructor for exception class vaultWeb.security.exception.JwtAuthenticationException
 
JwtAuthFilter - Class in vaultWeb.security
JWT authentication filter that intercepts incoming HTTP requests and validates JWT tokens.
JwtAuthFilter() - Constructor for class vaultWeb.security.JwtAuthFilter
 
JwtHandshakeInterceptor - Class in vaultWeb.config.websocket
Intercepts WebSocket handshake requests to perform JWT-based authentication.
JwtHandshakeInterceptor() - Constructor for class vaultWeb.config.websocket.JwtHandshakeInterceptor
 
JwtUtil - Class in vaultWeb.security
Utility class for creating and parsing JSON Web Tokens (JWT).
JwtUtil(String, String) - Constructor for class vaultWeb.security.JwtUtil
 

L

LastAdminException - Exception Class in vaultWeb.exceptions
Thrown when an attempt is made to remove the last admin of a group.
LastAdminException(Long) - Constructor for exception class vaultWeb.exceptions.LastAdminException
Constructs a LastAdminException for the specified group ID.
lastMessageAt() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns the value of the lastMessageAt record component.
lastMessagePreview() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns the value of the lastMessagePreview record component.
leaveGroup(Long) - Method in class vaultWeb.controllers.GroupController
Current user leaves a group.
leaveGroup(Long, User) - Method in class vaultWeb.services.GroupService
Removes a user from a group.
loadUserByUsername(String) - Method in class vaultWeb.services.auth.MyUserDetailsService
Loads the user details for Spring Security based on the given username.
login(String, String) - Method in class vaultWeb.services.auth.AuthService
Authenticates a user using their username and password and returns a JWT token upon successful authentication.
login(UserDto, HttpServletResponse) - Method in class vaultWeb.controllers.UserController
 
LoginResult - Record Class in vaultWeb.services.auth
 
LoginResult(User, String) - Constructor for record class vaultWeb.services.auth.LoginResult
Creates an instance of a LoginResult record class.
logout(String, HttpServletResponse) - Method in class vaultWeb.controllers.UserController
 
logout(String, HttpServletResponse) - Method in class vaultWeb.services.auth.AuthService
Logs out the current session by revoking the active refresh token (identified via its jti) and deleting the refresh token cookie.

M

main(String[]) - Static method in class vaultWeb.BackendApplication
Main method that serves as the entry point of the Spring Boot application.
memberCount() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the memberCount record component.
MessagePreview(Long, String, Instant, Long, Long) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Creates an instance of a MessagePreview record class.
messagesSent() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns the value of the messagesSent record component.
MyUserDetailsService - Class in vaultWeb.services.auth
Service class that integrates the application's User entity with Spring Security.
MyUserDetailsService() - Constructor for class vaultWeb.services.auth.MyUserDetailsService
 

N

name() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the name record component.
NotMemberException - Exception Class in vaultWeb.exceptions.notfound
 
NotMemberException(Long, Long) - Constructor for exception class vaultWeb.exceptions.notfound.NotMemberException
 

O

onCreate() - Method in class vaultWeb.models.Poll
 
onCreate() - Method in class vaultWeb.models.RefreshToken
 
OpenApiConfig - Class in vaultWeb.config
Configuration class for OpenAPI / Swagger documentation.
OpenApiConfig() - Constructor for class vaultWeb.config.OpenApiConfig
 
optionCount() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the optionCount record component.
OptionResultDto() - Constructor for class vaultWeb.dtos.PollResponseDto.OptionResultDto
 

P

parseRefreshToken(String) - Method in class vaultWeb.security.JwtUtil
Parses and validates a refresh token JWT.
participant() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns the value of the participant record component.
passwordEncoder() - Method in class vaultWeb.config.SecurityConfig
Defines the PasswordEncoder bean used for hashing passwords.
Poll - Class in vaultWeb.models
 
Poll() - Constructor for class vaultWeb.models.Poll
 
PollController - Class in vaultWeb.controllers
Controller for managing polls within a specific group.
PollController() - Constructor for class vaultWeb.controllers.PollController
 
pollCount() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the pollCount record component.
PollDoesNotBelongToGroupException - Exception Class in vaultWeb.exceptions
Thrown when a user tries to perform poll activities for a groupId that doesn't belong to the respective poll.
PollDoesNotBelongToGroupException(String) - Constructor for exception class vaultWeb.exceptions.PollDoesNotBelongToGroupException
Constructs a new PollDoesNotBelongToGroupException with a custom message.
PollNotFoundException - Exception Class in vaultWeb.exceptions.notfound
 
PollNotFoundException(Long) - Constructor for exception class vaultWeb.exceptions.notfound.PollNotFoundException
 
PollOption - Class in vaultWeb.models
 
PollOption() - Constructor for class vaultWeb.models.PollOption
 
PollOptionNotFoundException - Exception Class in vaultWeb.exceptions
Thrown when a user tries to perform poll activities for a optionId that doesn't exist in the respective poll.
PollOptionNotFoundException(String) - Constructor for exception class vaultWeb.exceptions.PollOptionNotFoundException
Constructs a new PollOptionNotFoundException with a custom message.
PollRepository - Interface in vaultWeb.repositories
 
PollRequestDto - Class in vaultWeb.dtos
 
PollRequestDto() - Constructor for class vaultWeb.dtos.PollRequestDto
 
PollResponseDto - Class in vaultWeb.dtos
 
PollResponseDto() - Constructor for class vaultWeb.dtos.PollResponseDto
 
PollResponseDto.OptionResultDto - Class in vaultWeb.dtos
 
polls() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns the value of the polls record component.
PollService - Class in vaultWeb.services
Service class responsible for managing polls within groups.
PollService() - Constructor for class vaultWeb.services.PollService
 
PollSummary(Long, String, Long, String, boolean, Instant, int, int) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Creates an instance of a PollSummary record class.
PollVote - Class in vaultWeb.models
 
PollVote() - Constructor for class vaultWeb.models.PollVote
 
PollVoteRepository - Interface in vaultWeb.repositories
 
PrivateChat - Class in vaultWeb.models
 
PrivateChat() - Constructor for class vaultWeb.models.PrivateChat
 
PrivateChatController - Class in vaultWeb.controllers
 
PrivateChatController() - Constructor for class vaultWeb.controllers.PrivateChatController
 
privateChatCount() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns the value of the privateChatCount record component.
PrivateChatDto - Record Class in vaultWeb.dtos
 
PrivateChatDto(Long, String, String) - Constructor for record class vaultWeb.dtos.PrivateChatDto
Creates an instance of a PrivateChatDto record class.
privateChatId() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns the value of the privateChatId record component.
PrivateChatRepository - Interface in vaultWeb.repositories
 
privateChats() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns the value of the privateChats record component.
PrivateChatService - Class in vaultWeb.services
Service class for handling private chats between two users.
PrivateChatService() - Constructor for class vaultWeb.services.PrivateChatService
 
PrivateChatSummary(Long, String, String, Instant) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Creates an instance of a PrivateChatSummary record class.
profile() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns the value of the profile record component.
ProfileSummary(Long, String, int, int, long) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Creates an instance of a ProfileSummary record class.

Q

question() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the question record component.

R

rateLimit(ProceedingJoinPoint, ApiRateLimit) - Method in class vaultWeb.security.aspects.RateLimitAspect
 
RateLimitAspect - Class in vaultWeb.security.aspects
 
RateLimitAspect() - Constructor for class vaultWeb.security.aspects.RateLimitAspect
 
RateLimitExceededException - Exception Class in vaultWeb.exceptions
 
RateLimitExceededException(String, long) - Constructor for exception class vaultWeb.exceptions.RateLimitExceededException
 
RateLimitFilter - Class in vaultWeb.security
 
RateLimitFilter() - Constructor for class vaultWeb.security.RateLimitFilter
 
recentMessages() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns the value of the recentMessages record component.
refillDurationMinutes() - Element in annotation interface vaultWeb.security.annotations.ApiRateLimit
 
refillTokens() - Element in annotation interface vaultWeb.security.annotations.ApiRateLimit
 
refresh(String, HttpServletResponse) - Method in class vaultWeb.controllers.UserController
 
refresh(String, HttpServletResponse) - Method in class vaultWeb.services.auth.AuthService
Refreshes the access token using a valid refresh token and performs refresh token rotation.
RefreshToken - Class in vaultWeb.models
 
RefreshToken() - Constructor for class vaultWeb.models.RefreshToken
 
RefreshTokenCleanupService - Class in vaultWeb.services.auth
 
RefreshTokenCleanupService() - Constructor for class vaultWeb.services.auth.RefreshTokenCleanupService
 
RefreshTokenRepository - Interface in vaultWeb.repositories
 
RefreshTokenService - Class in vaultWeb.services.auth
 
RefreshTokenService() - Constructor for class vaultWeb.services.auth.RefreshTokenService
 
register(UserDto) - Method in class vaultWeb.controllers.UserController
 
registerStompEndpoints(StompEndpointRegistry) - Method in class vaultWeb.config.websocket.WebSocketConfig
Register STOMP WebSocket endpoint at "/ws-chat" with SockJS fallback and allow all origins (adjust for production).
registerUser(User) - Method in class vaultWeb.services.UserService
Registers a new user by encoding their password and assigning the default role.
removeMember(Long, Long) - Method in class vaultWeb.services.GroupService
Removes a specific user from a group.
removeMemberFromGroup(Long, Long) - Method in class vaultWeb.controllers.GroupController
Removes a member from a group.
revokeAllByUser(Long) - Method in interface vaultWeb.repositories.RefreshTokenRepository
 
role() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns the value of the role record component.
Role - Enum Class in vaultWeb.models.enums
 

S

saveMessage(ChatMessageDto) - Method in class vaultWeb.services.ChatService
Saves a chat message to a group or private chat.
SecurityConfig - Class in vaultWeb.config
 
SecurityConfig() - Constructor for class vaultWeb.config.SecurityConfig
 
sendMessage(ChatMessageDto) - Method in class vaultWeb.controllers.ChatController
Handles incoming group chat messages from clients and broadcasts them to all subscribers of the specified group topic.
sendPrivateMessage(ChatMessageDto) - Method in class vaultWeb.controllers.ChatController
Handles incoming private chat messages from clients and sends them to both users of the private chat.
sha256(String) - Static method in class vaultWeb.security.TokenHashUtil
 

T

timestamp() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns the value of the timestamp record component.
TokenHashUtil - Class in vaultWeb.security
 
toResponseDto(Poll) - Method in class vaultWeb.services.PollService
Converts a Poll entity to a PollResponseDto suitable for API responses.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.GroupSummary
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.MessagePreview
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PrivateChatSummary
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.dtos.PrivateChatDto
Returns a string representation of this record class.
toString() - Method in record class vaultWeb.services.auth.LoginResult
Returns a string representation of this record class.
totalVotes() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.PollSummary
Returns the value of the totalVotes record component.

U

UnauthorizedException - Exception Class in vaultWeb.exceptions
Thrown when a user attempts to perform an action they are not authorized to perform.
UnauthorizedException(String) - Constructor for exception class vaultWeb.exceptions.UnauthorizedException
Constructs an UnauthorizedException with the specified detail message.
updateGroup(Long, GroupDto) - Method in class vaultWeb.controllers.GroupController
Updates a group.
updateGroup(Long, GroupDto) - Method in class vaultWeb.services.GroupService
Updates an existing group's details.
updatePoll(Long, Long, PollRequestDto) - Method in class vaultWeb.controllers.PollController
Updates an existing poll.
updatePoll(Long, Long, User, PollRequestDto) - Method in class vaultWeb.services.PollService
Updates an existing poll authored by a user.
useIpAddress() - Element in annotation interface vaultWeb.security.annotations.ApiRateLimit
If true, uses IP address for rate limiting.
user() - Method in record class vaultWeb.services.auth.LoginResult
Returns the value of the user record component.
User - Class in vaultWeb.models
 
User(UserDto) - Constructor for class vaultWeb.models.User
 
USER - Enum constant in enum class vaultWeb.models.enums.Role
 
UserController - Class in vaultWeb.controllers
 
UserController() - Constructor for class vaultWeb.controllers.UserController
 
UserDashboardDto - Record Class in vaultWeb.dtos.dashboard
Aggregated payload returned to the frontend so a dashboard can render all user-centric data with a single request.
UserDashboardDto(UserDashboardDto.ProfileSummary, List<UserDashboardDto.GroupSummary>, List<UserDashboardDto.PrivateChatSummary>, List<UserDashboardDto.PollSummary>, List<UserDashboardDto.MessagePreview>) - Constructor for record class vaultWeb.dtos.dashboard.UserDashboardDto
Creates an instance of a UserDashboardDto record class.
UserDashboardDto.GroupSummary - Record Class in vaultWeb.dtos.dashboard
 
UserDashboardDto.MessagePreview - Record Class in vaultWeb.dtos.dashboard
 
UserDashboardDto.PollSummary - Record Class in vaultWeb.dtos.dashboard
 
UserDashboardDto.PrivateChatSummary - Record Class in vaultWeb.dtos.dashboard
 
UserDashboardDto.ProfileSummary - Record Class in vaultWeb.dtos.dashboard
 
UserDto - Class in vaultWeb.dtos.user
 
UserDto() - Constructor for class vaultWeb.dtos.user.UserDto
 
username() - Method in record class vaultWeb.dtos.dashboard.UserDashboardDto.ProfileSummary
Returns the value of the username record component.
username1() - Method in record class vaultWeb.dtos.PrivateChatDto
Returns the value of the username1 record component.
username2() - Method in record class vaultWeb.dtos.PrivateChatDto
Returns the value of the username2 record component.
usernameExists(String) - Method in class vaultWeb.services.UserService
Checks if a username already exists in the database.
UserNotFoundException - Exception Class in vaultWeb.exceptions.notfound
 
UserNotFoundException(String) - Constructor for exception class vaultWeb.exceptions.notfound.UserNotFoundException
 
UserRepository - Interface in vaultWeb.repositories
 
UserResponseDto - Class in vaultWeb.dtos.user
 
UserResponseDto(User) - Constructor for class vaultWeb.dtos.user.UserResponseDto
 
UserService - Class in vaultWeb.services
Service class for managing users.
UserService() - Constructor for class vaultWeb.services.UserService
 

V

validateToken(String) - Method in class vaultWeb.security.JwtUtil
 
valueOf(String) - Static method in enum class vaultWeb.models.enums.Role
Returns the enum constant of this class with the specified name.
values() - Static method in enum class vaultWeb.models.enums.Role
Returns an array containing the constants of this enum class, in the order they are declared.
vaultWeb - package vaultWeb
 
vaultWeb.config - package vaultWeb.config
 
vaultWeb.config.websocket - package vaultWeb.config.websocket
 
vaultWeb.controllers - package vaultWeb.controllers
 
vaultWeb.dtos - package vaultWeb.dtos
 
vaultWeb.dtos.dashboard - package vaultWeb.dtos.dashboard
 
vaultWeb.dtos.user - package vaultWeb.dtos.user
 
vaultWeb.exceptions - package vaultWeb.exceptions
 
vaultWeb.exceptions.notfound - package vaultWeb.exceptions.notfound
 
vaultWeb.models - package vaultWeb.models
 
vaultWeb.models.enums - package vaultWeb.models.enums
 
vaultWeb.repositories - package vaultWeb.repositories
 
vaultWeb.security - package vaultWeb.security
 
vaultWeb.security.annotations - package vaultWeb.security.annotations
 
vaultWeb.security.aspects - package vaultWeb.security.aspects
 
vaultWeb.security.exception - package vaultWeb.security.exception
 
vaultWeb.services - package vaultWeb.services
 
vaultWeb.services.auth - package vaultWeb.services.auth
 
vote(Long, Long, Long) - Method in class vaultWeb.controllers.PollController
Casts a vote for a specific poll option.
vote(Long, Long, Long, User) - Method in class vaultWeb.services.PollService
Allows a user to vote for a specific option in a poll within a group.

W

WebSocketConfig - Class in vaultWeb.config.websocket
WebSocket configuration enabling STOMP messaging for real-time chat functionality.
WebSocketConfig() - Constructor for class vaultWeb.config.websocket.WebSocketConfig
 
A B C D E F G H I J L M N O P Q R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form