Index

A B C D E F G H I J K L M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

ALIAS - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Alias of the generated key.
ALIAS - Static variable in class com.irurueta.authserver.testsupport.TestPki
The keytool option that names the alias of an entry.
API_PORT - Static variable in class com.irurueta.authserver.testsupport.Mailpit
Port the HTTP API listens on inside the container.
authority - Variable in class com.irurueta.authserver.testsupport.TestPki
Certificate of the authority.
authorityKeyStore - Variable in class com.irurueta.authserver.testsupport.TestPki
Key store of the authority.
authorityPem - Variable in class com.irurueta.authserver.testsupport.TestPki
Path of the authority's certificate in PEM.
awaitMessagesTo(String, int) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Waits until at least a number of messages addressed to a recipient arrived.
awaitMessageTo(String) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Waits for the first message addressed to a recipient.

B

baseUrl - Variable in class com.irurueta.authserver.testsupport.MailpitClient
Base URL of the HTTP API, without a trailing slash.

C

CA_ALIAS - Static variable in class com.irurueta.authserver.testsupport.TestPki
Alias of the authority's key.
CALL_TIMEOUT - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Longest wait for one HTTP call.
certificate - Variable in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
The field for the certificate record component.
certificate - Variable in record class com.irurueta.authserver.testsupport.TestPki.Identity
The field for the certificate record component.
certificate() - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Returns the value of the certificate record component.
certificate() - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Returns the value of the certificate record component.
clientContext(TestPki.Identity) - Method in class com.irurueta.authserver.testsupport.TestPki
Gives the TLS context of a client that presents a certificate and trusts the authority.
clientOf(GenericContainer<?>) - Static method in class com.irurueta.authserver.testsupport.Mailpit
Builds the client of the HTTP API of a started container.
close() - Method in class com.irurueta.authserver.testsupport.TestPki
 
code() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Reads the numeric code of the message.
CODE - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Matches the numeric code of a message: a run of digits that stands alone.
com.irurueta.authserver.testsupport - package com.irurueta.authserver.testsupport
Shared test harness: Testcontainers PostgreSQL support for integration tests, and the comparison of the OpenAPI contracts under apis/ with the documents the applications serve.
COMPONENTS - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Key of the components.
CONTENT - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Key of the content of a request body or a response.
CONTENT_KEY - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Infix of the summary keys of the media types of an answer.
countMessagesTo(String) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Counts the messages addressed to a recipient that Mailpit holds now.
create(String) - Static method in class com.irurueta.authserver.testsupport.TestPki
Creates the infrastructure with a new certificate authority.

D

DEFAULT_WAIT - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Default longest wait for a message to arrive.
delete(Path) - Static method in class com.irurueta.authserver.testsupport.Keytool
Deletes a directory and what it holds, ignoring a failure.
describeBody(Map<String, Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes a request body.
describeContent(Map<String, Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes a content map by media type and schema.
describeParameters(Map<String, Object>, List<Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes parameters by location, name and whether they are required.
describeSchema(Map<String, Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes a schema by name, or by type for an inline one.
describeSchemaProperties(Map<String, Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes the properties of a schema.
describeScheme(Map<String, Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes a security scheme by the fields a client relies on.
describeSecurity(List<Object>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Describes security requirements, an absent or empty list meaning a public operation.
directory - Variable in class com.irurueta.authserver.testsupport.TestPki
Temporary directory that holds every file.

E

ENTITY_ALIAS - Static variable in class com.irurueta.authserver.testsupport.TestPki
Alias of the key of an issued entity.
equals(Object) - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Indicates whether some other object is "equal to" this one.
EXPIRED_START - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Start of the validity of an expired certificate: five days ago, so that its two days are long gone.

F

fingerprintSha256 - Variable in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
The field for the fingerprintSha256 record component.
fingerprintSha256() - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Returns the value of the fingerprintSha256 record component.
FULL_LINK - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Matches the whole magic link a message carries.

G

generate(String) - Static method in class com.irurueta.authserver.testsupport.TestCertificates
Generates a self-signed certificate.
generate(String, List<String>) - Static method in class com.irurueta.authserver.testsupport.TestCertificates
Generates a self-signed certificate.
GeneratedCertificate(X509Certificate, String, String) - Constructor for record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Creates an instance of a GeneratedCertificate record class.
generateExpired(String) - Static method in class com.irurueta.authserver.testsupport.TestCertificates
Generates a self-signed certificate that expired days ago.
get(String) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Calls the API with GET and parses the JSON answer.

H

hashCode() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Returns a hash code value for this object.
hashCode() - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Returns a hash code value for this object.
html - Variable in record class com.irurueta.authserver.testsupport.MailpitClient.Message
The field for the html record component.
html() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns the value of the html record component.
http - Variable in class com.irurueta.authserver.testsupport.MailpitClient
Sends the HTTP calls.
HTTP_OK - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
HTTP status of a successful call.

I

id - Variable in record class com.irurueta.authserver.testsupport.MailpitClient.Message
The field for the id record component.
id() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns the value of the id record component.
Identity(Path, String, TestCertificates.GeneratedCertificate) - Constructor for record class com.irurueta.authserver.testsupport.TestPki.Identity
Creates an instance of a Identity record class.
identityOf(Path) - Method in class com.irurueta.authserver.testsupport.TestPki
Reads an identity from its key store.
IMAGE - Static variable in class com.irurueta.authserver.testsupport.Mailpit
Docker image of Mailpit, pinned to a version so a run never depends on a moving tag.
INPUT - Static variable in class com.irurueta.authserver.testsupport.TestPki
The keytool option that names the input file.
issue(String, List<String>) - Method in class com.irurueta.authserver.testsupport.TestPki
Issues an entity signed by the authority.
issueClient(String) - Method in class com.irurueta.authserver.testsupport.TestPki
Issues the certificate of a client, signed by the authority.
issued - Variable in class com.irurueta.authserver.testsupport.TestPki
Number of entities issued, to name their files.
issueExpiredClient(String) - Method in class com.irurueta.authserver.testsupport.TestPki
Gives the identity of a client with a self-signed certificate that expired days ago.
issueServer(String) - Method in class com.irurueta.authserver.testsupport.TestPki
Issues the certificate of a TLS server, valid for localhost and the loopback address.

J

JSON - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Reads the JSON answers.

K

KEY_STORE_TYPE - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Type of the key store the certificate is read from.
KEY_STORE_TYPE - Static variable in class com.irurueta.authserver.testsupport.TestPki
Type of the key stores.
keyEncryptionPropertiesRegistrar() - Method in class com.irurueta.authserver.testsupport.KeyEncryptionTestConfiguration
Registers authserver.keys.encryption.password and .salt with random values.
KeyEncryptionTestConfiguration - Class in com.irurueta.authserver.testsupport
Supplies the inputs of the encryption of signing keys at rest to a test context.
KeyEncryptionTestConfiguration() - Constructor for class com.irurueta.authserver.testsupport.KeyEncryptionTestConfiguration
 
keyStore - Variable in record class com.irurueta.authserver.testsupport.TestPki.Identity
The field for the keyStore record component.
keyStore() - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Returns the value of the keyStore record component.
KEYSTORE - Static variable in class com.irurueta.authserver.testsupport.TestPki
The keytool option that names a key store.
Keytool - Class in com.irurueta.authserver.testsupport
Runs the keytool of the JDK that runs the tests and cleans up the temporary directories its key stores live in; the JDK has no public API to issue a certificate.
Keytool() - Constructor for class com.irurueta.authserver.testsupport.Keytool
Not instantiable.

L

link() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Reads the full magic link of the message, as the user would open it.
LINK_TOKEN - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Matches the magic link a message carries and captures its token.
linkToken() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Reads the token of the magic link the message carries.
list(Object) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Reads a node as a list.
LOCAL_REF - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Prefix of a local reference.

M

Mailpit - Class in com.irurueta.authserver.testsupport
Describes the Mailpit container the one-time token tests read the e-mail of: the pinned image, its two ports and a factory that builds the container and the client of its HTTP API.
Mailpit() - Constructor for class com.irurueta.authserver.testsupport.Mailpit
Prevents instantiation of this utility class.
mailpitClient(GenericContainer<?>) - Method in class com.irurueta.authserver.testsupport.MailpitTestConfiguration
Creates the client of the container's HTTP API.
MailpitClient - Class in com.irurueta.authserver.testsupport
Reads the messages a Mailpit server received through its HTTP API, so a test finds the code or the link the application mailed to a recipient.
MailpitClient(String) - Constructor for class com.irurueta.authserver.testsupport.MailpitClient
Creates the client.
MailpitClient.Message - Record Class in com.irurueta.authserver.testsupport
A message Mailpit received.
mailpitContainer() - Method in class com.irurueta.authserver.testsupport.MailpitTestConfiguration
Creates the Mailpit container.
mailpitProperties(GenericContainer<?>) - Method in class com.irurueta.authserver.testsupport.MailpitTestConfiguration
Points spring.mail.host and spring.mail.port at the container's SMTP server.
MailpitTestConfiguration - Class in com.irurueta.authserver.testsupport
Starts a Mailpit container for a Spring test context and points the application's mail sender at it, so the messages the application sends can be read back through MailpitClient.
MailpitTestConfiguration() - Constructor for class com.irurueta.authserver.testsupport.MailpitTestConfiguration
 
map(Object) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Reads a node as a map.
Message(String, String, String, String) - Constructor for record class com.irurueta.authserver.testsupport.MailpitClient.Message
Creates an instance of a Message record class.
messagesTo(String) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Lists the messages addressed to a recipient that Mailpit holds now.
METHODS - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
HTTP methods an OpenAPI path item may declare an operation for.

N

newContainer() - Static method in class com.irurueta.authserver.testsupport.Mailpit
Creates a Mailpit container, not yet started.
nextName() - Method in class com.irurueta.authserver.testsupport.TestPki
Names the files of the next entity.

O

of(X509Certificate) - Static method in class com.irurueta.authserver.testsupport.TestCertificates
Describes a certificate.
OpenApiContract - Class in com.irurueta.authserver.testsupport
Compares an OpenAPI contract under apis/ with the OpenAPI document a running application serves.
OpenApiContract() - Constructor for class com.irurueta.authserver.testsupport.OpenApiContract
Utility class: not meant to be instantiated.

P

parse(String) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Parses an OpenAPI document.
password - Variable in record class com.irurueta.authserver.testsupport.TestPki.Identity
The field for the password record component.
password - Variable in class com.irurueta.authserver.testsupport.TestPki
Password of every key store.
password() - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Returns the value of the password record component.
PASSWORD_BYTES - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Number of random bytes of the password of the temporary key store.
PASSWORD_BYTES - Static variable in class com.irurueta.authserver.testsupport.TestPki
Number of random bytes of the password of the key stores.
passwordFile - Variable in class com.irurueta.authserver.testsupport.TestPki
File that holds TestPki.password.
pause() - Static method in class com.irurueta.authserver.testsupport.MailpitClient
Sleeps a short while between two polls.
pem - Variable in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
The field for the pem record component.
pem() - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Returns the value of the pem record component.
PEM_LINE_LENGTH - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Characters of a line of a PEM certificate.
POLL_MILLIS - Static variable in class com.irurueta.authserver.testsupport.MailpitClient
Pause between two polls of the server.
POSTGRES_IMAGE - Static variable in class com.irurueta.authserver.testsupport.PostgresTestConfiguration
Docker image used for the PostgreSQL container (same major version as compose.yaml).
postgresContainer() - Method in class com.irurueta.authserver.testsupport.PostgresTestConfiguration
Creates the PostgreSQL container.
PostgresIT - Annotation Interface in com.irurueta.authserver.testsupport
Meta-annotation for integration tests backed by a PostgreSQL Testcontainers container.
PostgresTestConfiguration - Class in com.irurueta.authserver.testsupport
Exposes a PostgreSQL Testcontainers container as a Spring Boot service connection, so the DataSource (and Flyway) of a test context is wired to it automatically.
PostgresTestConfiguration() - Constructor for class com.irurueta.authserver.testsupport.PostgresTestConfiguration
 

R

RANDOM - Static variable in class com.irurueta.authserver.testsupport.KeyEncryptionTestConfiguration
Source of the generated values.
RANDOM - Static variable in class com.irurueta.authserver.testsupport.TestCertificates
Source of the password of the temporary key store.
RANDOM - Static variable in class com.irurueta.authserver.testsupport.TestPki
Source of the password.
read(String) - Method in class com.irurueta.authserver.testsupport.MailpitClient
Reads one message.
read(Path) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Reads an OpenAPI document from a file.
readCertificate(Path) - Static method in class com.irurueta.authserver.testsupport.TestPki
Reads a PEM certificate.
READY_PATH - Static variable in class com.irurueta.authserver.testsupport.Mailpit
Path that answers once the HTTP API is ready.
REF - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Key of a reference.
resolve(Map<String, Object>, Object) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Resolves a local reference, such as #/components/responses/Unauthorized.
RESPONSE - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Value of the summary key of a status code: its body is described by the media type keys.
restrictTo(SortedMap<String, String>, SortedMap<String, String>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Restricts the summary of a served document to the schemas and the media types of the answers the contract declares, leaving out what the server documents by itself.
run(List<String>) - Static method in class com.irurueta.authserver.testsupport.Keytool
Runs keytool and waits for it.

S

SALT_BYTES - Static variable in class com.irurueta.authserver.testsupport.KeyEncryptionTestConfiguration
Number of random bytes of the generated salt.
SCHEMA - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Key of a schema.
SCHEMA_KEY - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Prefix of the summary keys of the schemas.
SECURITY - Static variable in class com.irurueta.authserver.testsupport.OpenApiContract
Key of the security requirements.
sign(Path, Path, Path, List<String>) - Method in class com.irurueta.authserver.testsupport.TestPki
Has the authority sign a request and installs the answer in the entity's key store.
SMTP_PORT - Static variable in class com.irurueta.authserver.testsupport.Mailpit
Port the SMTP server listens on inside the container.
sorted(Collection<?>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Sorts values by their text.
STORE_PASSWORD_FILE - Static variable in class com.irurueta.authserver.testsupport.TestPki
The keytool option that names the file with a key store password.
subject - Variable in record class com.irurueta.authserver.testsupport.MailpitClient.Message
The field for the subject record component.
subject() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns the value of the subject record component.
summarize(Map<String, Object>, String) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Summarizes the API a document describes.
summarizePath(Map<String, Object>, String, Map<String, Object>, Object, Map<String, String>) - Static method in class com.irurueta.authserver.testsupport.OpenApiContract
Summarizes every operation of a path.

T

TestCertificates - Class in com.irurueta.authserver.testsupport
Generates self-signed client certificates at run time for the tests of the sign-in with a client certificate, so no certificate, key or key store is ever kept in the repository.
TestCertificates() - Constructor for class com.irurueta.authserver.testsupport.TestCertificates
Not instantiable.
TestCertificates.GeneratedCertificate - Record Class in com.irurueta.authserver.testsupport
A generated certificate.
TestPki - Class in com.irurueta.authserver.testsupport
A small public key infrastructure generated at run time for the tests of TLS client authentication: a certificate authority, and server and client certificates it signs, each kept in a PKCS#12 key store inside one temporary directory that TestPki.close() deletes.
TestPki(Path, String, X509Certificate) - Constructor for class com.irurueta.authserver.testsupport.TestPki
Describes an infrastructure whose files already exist.
TestPki.Identity - Record Class in com.irurueta.authserver.testsupport
An identity of the infrastructure.
text - Variable in record class com.irurueta.authserver.testsupport.MailpitClient.Message
The field for the text record component.
text() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns the value of the text record component.
TIMEOUT_SECONDS - Static variable in class com.irurueta.authserver.testsupport.Keytool
Longest time keytool may take.
toString() - Method in record class com.irurueta.authserver.testsupport.MailpitClient.Message
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.testsupport.TestCertificates.GeneratedCertificate
Returns a string representation of this record class.
toString() - Method in record class com.irurueta.authserver.testsupport.TestPki.Identity
Returns a string representation of this record class.

V

VALIDITY_DAYS - Static variable in class com.irurueta.authserver.testsupport.TestPki
Days the issued certificates are valid.

W

webEnvironment() - Element in annotation interface com.irurueta.authserver.testsupport.PostgresIT
Web environment of the test context, forwarded to SpringBootTest.webEnvironment().
A B C D E F G H I J K L M N O P R S T V W 
All Classes and Interfaces|All Packages|Constant Field Values