Index

A B C D E F G H I K L N P R S T U V 
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 acceptedBy record component.
action() - Method in record class io.levysworks.models.requests.ActionRequest
Returns the value of the action record 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 ActionRequest record class.
addActiveKey(String, String, String) - Method in class io.levysworks.beans.DatabaseManager
Inserts a new row into the ssh_keys table with the provided parameters
addKeyForAgent(String, String) - Method in class io.levysworks.beans.PollManager
Publishes a new key to the specified agent's .add queue on the pollexchange exchange.
addNewLog(String, String, Timestamp) - Method in class io.levysworks.beans.DatabaseManager
Inserts a new row into the audit_log table with the provided parameters
addPendingRequest(String, String, String) - Method in class io.levysworks.beans.DatabaseManager
Inserts a new row into the requests table with the provided parameters
addUser(String, String, String, String, String) - Method in class io.levysworks.beans.DatabaseManager
Inserts a new user into the users table 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-wrapper prefix.
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 CompositeUserData instance 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_keys table 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 CompositeUserData record 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 department record component.
department() - Method in record class io.levysworks.models.requests.UserRequest
Returns the value of the department record 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 email record component.
email() - Method in record class io.levysworks.models.requests.UserRequest
Returns the value of the email record 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 fingerprint record 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_name record 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 firstName record 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_keys table.
getKeysForTemplate() - Method in class io.levysworks.beans.DatabaseManager
Queries a set of user and SSH key information by joining the ssh_keys and users tables.
getLogs(int) - Method in class io.levysworks.beans.DatabaseManager
Queries the audit_log table for the latest logs ordered descending by the timestamp column, limited to the specified amount.
getPendingRequestById(int) - Method in class io.levysworks.beans.DatabaseManager
Queries a request by its id from the requests table
getPendingRequestCount() - Method in class io.levysworks.beans.DatabaseManager
Queries the number of requests present in the requests table.
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 requests and users tables.
getUserByUUID(String) - Method in class io.levysworks.beans.DatabaseManager
Queries the users table for the user with the specified UUID.
getUserCount() - Method in class io.levysworks.beans.DatabaseManager
Queries the number of users present in the users table.
getUserKeysByUUID(String) - Method in class io.levysworks.beans.DatabaseManager
Queries the ssh_keys table 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 users and ssh_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 id record 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 initials record 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 issuedDate record 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 key record 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 keyCount record 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 keyType record component.
keyUid() - Method in record class io.levysworks.models.CompositeUserData
Returns the value of the keyUid record component.

L

last_name() - Method in record class io.levysworks.models.requests.UserRequest
Returns the value of the last_name record 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 lastName record 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 logMessage record component.
logTimestamp() - Method in record class io.levysworks.models.CompositeUserData
Returns the value of the logTimestamp record component.
logTitle() - Method in record class io.levysworks.models.CompositeUserData
Returns the value of the logTitle record 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 notes record component.
notes() - Method in record class io.levysworks.models.requests.UserRequest
Returns the value of the notes record 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 add and remove key 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 publicKey record 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_keys table where server and uid both match
removeKeyFromAgent(String, String) - Method in class io.levysworks.beans.PollManager
Publishes a key removal request to the specified agent's .remove queue on the pollexchange exchange.
removePendingRequest(int) - Method in class io.levysworks.beans.DatabaseManager
Removes a request from the requests table by its ID
removeUser(String) - Method in class io.levysworks.beans.DatabaseManager
Removes a user from the users table 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 Request record 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 requestId record 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 server record component.
server() - Method in record class io.levysworks.models.requests.Request
Returns the value of the server record 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 servers record 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 timestamp record component.
toResponse(RateLimitException) - Method in class io.levysworks.exceptions.RateLimitExceptionMapper
Converts a RateLimitException into a Response with 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 uuid in the users table
user_uuid() - Method in record class io.levysworks.models.requests.Request
Returns the value of the user_uuid record component.
username() - Method in record class io.levysworks.models.CompositeUserData
Returns the value of the username record 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 UserRequest record class.
uuid() - Method in record class io.levysworks.models.CompositeUserData
Returns the value of the uuid record 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 validUntil record component.
A B C D E F G H I K L N P R S T U V 
All Classes and Interfaces|All Packages