Index
All Classes and Interfaces|All Packages
A
- accepted_by(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- acceptedBy() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
acceptedByrecord component. - action() - Method in record class io.levysworks.models.requests.ActionRequest
-
Returns the value of the
actionrecord component. - ActionRequest - Record Class in io.levysworks.models.requests
-
Represents the request payload for an admin action.
- ActionRequest(String) - Constructor for record class io.levysworks.models.requests.ActionRequest
-
Creates an instance of a
ActionRequestrecord class. - addActiveKey(String, String, String) - Method in class io.levysworks.beans.DatabaseManager
-
Inserts a new row into the
ssh_keystable with the provided parameters - addKeyForAgent(String, String) - Method in class io.levysworks.beans.PollManager
-
Publishes a new key to the specified agent's
.addqueue on thepollexchangeexchange. - addNewLog(String, String, Timestamp) - Method in class io.levysworks.beans.DatabaseManager
-
Inserts a new row into the
audit_logtable with the provided parameters - addPendingRequest(String, String, String) - Method in class io.levysworks.beans.DatabaseManager
-
Inserts a new row into the
requeststable with the provided parameters - addUser(String, String, String, String, String) - Method in class io.levysworks.beans.DatabaseManager
-
Inserts a new user into the
userstable with the specified parameters - admin() - Method in class io.levysworks.endpoints.pages.AdminPage
-
Handles GET requests to the admin page.
- AdminEndpoint - Class in io.levysworks.endpoints
-
Endpoint reserved for admin actions
- AdminEndpoint() - Constructor for class io.levysworks.endpoints.AdminEndpoint
- AdminPage - Class in io.levysworks.endpoints.pages
-
Endpoint serving the admin interface, including the dashboard, user profiles, and user creation form.
- AdminPage() - Constructor for class io.levysworks.endpoints.pages.AdminPage
- AgentsConfig - Interface in io.levysworks.configs
-
Configuration mapping interface for agent server definitions, using the
servers-wrapperprefix. - AgentsConfig.ServerConfig - Interface in io.levysworks.configs
-
Represents a single agent server's configuration.
B
- build() - Method in class io.levysworks.models.CompositeUserDataBuilder
-
Builds a
CompositeUserDatainstance using the set values.
C
- checkAgentExists(String) - Method in class io.levysworks.beans.PollManager
-
Checks whether an agent exists in the
AgentsConfig - checkKeyExists(String) - Method in class io.levysworks.beans.DatabaseManager
-
Checks whether an SSH Key exists in the
ssh_keystable with the specified UID - checkSystemHealth() - Method in class io.levysworks.beans.HealthManager
-
Scheduled method for checking system health
- CompositeUserData - Record Class in io.levysworks.models
-
Composite data record representing detailed user information, associated keys, server details, and related log entries.
- CompositeUserData(String, String, String, String, String, String, String, String, Integer, String, Integer, String, String, String, String, String, String, Timestamp, Timestamp, String, String, Timestamp) - Constructor for record class io.levysworks.models.CompositeUserData
-
Creates an instance of a
CompositeUserDatarecord class. - CompositeUserDataBuilder - Class in io.levysworks.models
-
Builder for
CompositeUserData, allowing incremental construction of user-related composite data with optional fields. - CompositeUserDataBuilder() - Constructor for class io.levysworks.models.CompositeUserDataBuilder
D
- DatabaseManager - Class in io.levysworks.beans
-
Database manager bean, used for connecting, and interacting with the database.
- DatabaseManager() - Constructor for class io.levysworks.beans.DatabaseManager
- dbManager - Variable in class io.levysworks.endpoints.RegisterEndpoint
- department() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
departmentrecord component. - department() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns the value of the
departmentrecord component. - department(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
E
- email() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
emailrecord component. - email() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns the value of the
emailrecord component. - email(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- equals(Object) - Method in record class io.levysworks.models.CompositeUserData
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.levysworks.models.requests.ActionRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.levysworks.models.requests.Request
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.levysworks.models.requests.UserRequest
-
Indicates whether some other object is "equal to" this one.
F
- fingerprint() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
fingerprintrecord component. - fingerprint(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- first_name() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns the value of the
first_namerecord component. - first_name(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- firstName() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
firstNamerecord component.
G
- generateECDSAKeyPair() - Static method in class io.levysworks.utilities.KeyGenerator
-
Generates an ECDSA SSH key pair with 256 bits key size.
- generateEd25519KeyPair() - Static method in class io.levysworks.utilities.KeyGenerator
-
Generates an Ed25519 SSH key pair.
- generateFingerprint(String) - Method in class io.levysworks.utilities.KeyGenerator.KeyHasher
-
Generates a SHA-256 fingerprint from the given key string.
- generateKeyPair(String, int) - Static method in class io.levysworks.utilities.KeyGenerator
-
Generates an SSH key pair using the system's ssh-keygen command.
- generateRSAKeyPair(int) - Static method in class io.levysworks.utilities.KeyGenerator
-
Generates an RSA SSH key pair with the specified size.
- getKeyCount() - Method in class io.levysworks.beans.DatabaseManager
-
Queries the number of ssh keys present in the
ssh_keystable. - getKeysForTemplate() - Method in class io.levysworks.beans.DatabaseManager
-
Queries a set of user and SSH key information by joining the
ssh_keysanduserstables. - getLogs(int) - Method in class io.levysworks.beans.DatabaseManager
-
Queries the
audit_logtable for the latest logs ordered descending by thetimestampcolumn, limited to the specified amount. - getPendingRequestById(int) - Method in class io.levysworks.beans.DatabaseManager
-
Queries a request by its id from the
requeststable - getPendingRequestCount() - Method in class io.levysworks.beans.DatabaseManager
-
Queries the number of requests present in the
requeststable. - getPrivateKey() - Method in class io.levysworks.utilities.KeyGenerator.SSHKeyPair
- getPublicKey() - Method in class io.levysworks.utilities.KeyGenerator.SSHKeyPair
- getRequestsForTemplate() - Method in class io.levysworks.beans.DatabaseManager
-
Queries a set of user and request information by joining the
requestsanduserstables. - getUserByUUID(String) - Method in class io.levysworks.beans.DatabaseManager
-
Queries the
userstable for the user with the specified UUID. - getUserCount() - Method in class io.levysworks.beans.DatabaseManager
-
Queries the number of users present in the
userstable. - getUserKeysByUUID(String) - Method in class io.levysworks.beans.DatabaseManager
-
Queries the
ssh_keystable for all SSH keys associated with the specified user UUID. - getUsersForTemplate() - Method in class io.levysworks.beans.DatabaseManager
-
Retrieves user data along with SSH key metadata by joining
usersandssh_keys.
H
- handleCreateUserAction() - Method in class io.levysworks.endpoints.pages.AdminPage
-
Handles GET requests to the create page.
- handleCreateUserAction(UserRequest) - Method in class io.levysworks.endpoints.AdminEndpoint
-
Handles POST request
- handleRemoveRequest(String, String) - Method in class io.levysworks.endpoints.AdminEndpoint
-
Handles DELETE request
- handleRemoveUserAction(String) - Method in class io.levysworks.endpoints.AdminEndpoint
-
Handles DELETE request
- handleRequestAction(Integer, ActionRequest) - Method in class io.levysworks.endpoints.AdminEndpoint
-
Handles PATCH request
- handleUserAction(String, UserRequest) - Method in class io.levysworks.endpoints.AdminEndpoint
-
Handles PATCH request
- handleUserProfileRequest(String) - Method in class io.levysworks.endpoints.pages.AdminPage
-
Handles GET requests for an individual user's profile page.
- hashCode() - Method in record class io.levysworks.models.CompositeUserData
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.levysworks.models.requests.ActionRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.levysworks.models.requests.Request
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns a hash code value for this object.
- HealthManager - Class in io.levysworks.beans
-
Bean for managing application health status.
- HealthManager() - Constructor for class io.levysworks.beans.HealthManager
I
- id() - Method in record class io.levysworks.models.requests.Request
-
Returns the value of the
idrecord component. - init() - Method in class io.levysworks.beans.PollManager
-
Initializes the RabbitMQ connection and declares necessary messaging infrastructure.
- initials() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
initialsrecord component. - initials(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- io.levysworks.beans - package io.levysworks.beans
- io.levysworks.configs - package io.levysworks.configs
- io.levysworks.endpoints - package io.levysworks.endpoints
- io.levysworks.endpoints.pages - package io.levysworks.endpoints.pages
- io.levysworks.exceptions - package io.levysworks.exceptions
- io.levysworks.models - package io.levysworks.models
- io.levysworks.models.requests - package io.levysworks.models.requests
- io.levysworks.utilities - package io.levysworks.utilities
- issued_date(Timestamp) - Method in class io.levysworks.models.CompositeUserDataBuilder
- issuedDate() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
issuedDaterecord component. - isSystemHealthy() - Method in class io.levysworks.beans.HealthManager
-
Returns whether all systems are currently healthy.
K
- key() - Method in record class io.levysworks.models.requests.Request
-
Returns the value of the
keyrecord component. - key_count(Integer) - Method in class io.levysworks.models.CompositeUserDataBuilder
- key_type(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- key_uid(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- keyCount() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
keyCountrecord component. - KeyGenerator - Class in io.levysworks.utilities
-
Utility class for generating SSH key pairs and hashing keys.
- KeyGenerator() - Constructor for class io.levysworks.utilities.KeyGenerator
- KeyGenerator.KeyHasher - Class in io.levysworks.utilities
-
Provides hashing functionality for SSH keys.
- KeyGenerator.SSHKeyPair - Class in io.levysworks.utilities
-
Represents a pair of SSH keys: private and public.
- KeyHasher() - Constructor for class io.levysworks.utilities.KeyGenerator.KeyHasher
- keyType() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
keyTyperecord component. - keyUid() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
keyUidrecord component.
L
- last_name() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns the value of the
last_namerecord component. - last_name(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- lastName() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
lastNamerecord component. - log(String, String) - Method in class io.levysworks.beans.LogManager
-
Creates new log entries in the database using
DatabaseManager.addNewLog(java.lang.String, java.lang.String, java.sql.Timestamp)
Generates the current timestamp for the log entry. - log_message(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- log_timestamp(Timestamp) - Method in class io.levysworks.models.CompositeUserDataBuilder
- log_title(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- LogManager - Class in io.levysworks.beans
-
Bean used for creating new logs
- LogManager() - Constructor for class io.levysworks.beans.LogManager
- logMessage() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
logMessagerecord component. - logTimestamp() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
logTimestamprecord component. - logTitle() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
logTitlerecord component.
N
- name() - Method in interface io.levysworks.configs.AgentsConfig.ServerConfig
-
Returns the name of the agent server.
- notes() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
notesrecord component. - notes() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns the value of the
notesrecord component. - notes(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- NotFoundExceptionMapper - Class in io.levysworks.exceptions
- NotFoundExceptionMapper() - Constructor for class io.levysworks.exceptions.NotFoundExceptionMapper
P
- pollManager - Variable in class io.levysworks.endpoints.RegisterEndpoint
- PollManager - Class in io.levysworks.beans
-
Bean used for sending
addandremovekey messages to the agent servers - PollManager() - Constructor for class io.levysworks.beans.PollManager
- public_key(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- publicKey() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
publicKeyrecord component.
R
- RateLimitExceptionMapper - Class in io.levysworks.exceptions
-
Exception mapper for
RateLimitException. - RateLimitExceptionMapper() - Constructor for class io.levysworks.exceptions.RateLimitExceptionMapper
- RegisterEndpoint - Class in io.levysworks.endpoints
-
Endpoint used by users to request new OpenSSH keys
Rate limited to 1 request per day - RegisterEndpoint() - Constructor for class io.levysworks.endpoints.RegisterEndpoint
- registerKey(String, String) - Method in class io.levysworks.endpoints.RegisterEndpoint
-
Generates an OpenSSH-compliant keypair and returns the private key as a downloadable file.
- RegisterKeypair() - Static method in class io.levysworks.utilities.KeyGenerator
-
Generates an Ed25519 SSH key pair.
- removeKeyByUID(String, String) - Method in class io.levysworks.beans.DatabaseManager
-
Removes the key entry from the
ssh_keystable whereserveranduidboth match - removeKeyFromAgent(String, String) - Method in class io.levysworks.beans.PollManager
-
Publishes a key removal request to the specified agent's
.removequeue on thepollexchangeexchange. - removePendingRequest(int) - Method in class io.levysworks.beans.DatabaseManager
-
Removes a request from the
requeststable by its ID - removeUser(String) - Method in class io.levysworks.beans.DatabaseManager
-
Removes a user from the
userstable by their UUID - Request - Record Class in io.levysworks.models.requests
-
Represents a pending SSH key request.
- Request(int, String, String, String, Instant) - Constructor for record class io.levysworks.models.requests.Request
-
Creates an instance of a
Requestrecord class. - request_id(Integer) - Method in class io.levysworks.models.CompositeUserDataBuilder
- requestId() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
requestIdrecord component. - root() - Method in class io.levysworks.endpoints.pages.RootPage
-
Handles GET requests to the requests page
- RootPage - Class in io.levysworks.endpoints.pages
-
Endpoint serving the SSH Key request page for users
- RootPage() - Constructor for class io.levysworks.endpoints.pages.RootPage
S
- server() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
serverrecord component. - server() - Method in record class io.levysworks.models.requests.Request
-
Returns the value of the
serverrecord component. - server(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- servers() - Method in interface io.levysworks.configs.AgentsConfig
-
Returns the list of configured agent servers.
- servers() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
serversrecord component. - servers(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- SSHKeyPair(String, String) - Constructor for class io.levysworks.utilities.KeyGenerator.SSHKeyPair
-
Constructs an SSHKeyPair.
T
- timestamp() - Method in record class io.levysworks.models.requests.Request
-
Returns the value of the
timestamprecord component. - toResponse(RateLimitException) - Method in class io.levysworks.exceptions.RateLimitExceptionMapper
-
Converts a
RateLimitExceptioninto aResponsewith HTTP status 429 (Too Many Requests). - toResponse(WebApplicationException) - Method in class io.levysworks.exceptions.NotFoundExceptionMapper
- toString() - Method in record class io.levysworks.models.CompositeUserData
-
Returns a string representation of this record class.
- toString() - Method in record class io.levysworks.models.requests.ActionRequest
-
Returns a string representation of this record class.
- toString() - Method in record class io.levysworks.models.requests.Request
-
Returns a string representation of this record class.
- toString() - Method in record class io.levysworks.models.requests.UserRequest
-
Returns a string representation of this record class.
U
- updateUser(String, String, String, String, String, String) - Method in class io.levysworks.beans.DatabaseManager
-
Updates the user with matching
uuidin theuserstable - user_uuid() - Method in record class io.levysworks.models.requests.Request
-
Returns the value of the
user_uuidrecord component. - username() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
usernamerecord component. - username(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
- UserRequest - Record Class in io.levysworks.models.requests
-
Represents a user request containing personal and organizational details.
- UserRequest(String, String, String, String, String) - Constructor for record class io.levysworks.models.requests.UserRequest
-
Creates an instance of a
UserRequestrecord class. - uuid() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
uuidrecord component. - uuid(String) - Method in class io.levysworks.models.CompositeUserDataBuilder
V
- valid_until(Timestamp) - Method in class io.levysworks.models.CompositeUserDataBuilder
- validUntil() - Method in record class io.levysworks.models.CompositeUserData
-
Returns the value of the
validUntilrecord component.
All Classes and Interfaces|All Packages