Index

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

A

AesGcmKeyCipher - Class in com.irurueta.authserver.authorization.infrastructure.keys
Encrypts and decrypts the private half of signing keys with AES-256-GCM (Spring Security's Encryptors.stronger).
AesGcmKeyCipher(KeyEncryptionProperties) - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmKeyCipher
Derives the encryption key.
AesGcmTotpSecretCipher - Class in com.irurueta.authserver.authorization.infrastructure.keys
TotpSecretCipher that encrypts TOTP secrets with AES-256 in GCM mode.
AesGcmTotpSecretCipher(KeyEncryptionProperties, PurposeKeyDerivation) - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmTotpSecretCipher
Derives the encryption key.
ALGORITHM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
Name of the MAC algorithm.
ALGORITHM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
Algorithm the keys are used with.
ALGORITHM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
Name of the hash algorithm.

C

cached - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
The cached set, or null when none is loaded.
CachedJwkSet - Class in com.irurueta.authserver.authorization.infrastructure.keys
A JSON Web Key set loaded lazily and kept in memory for a short time, so that verifying or signing a token does not read the database every time.
CachedJwkSet(Supplier<JWKSet>, Duration, Clock) - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Creates an empty cache.
caches - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.JwkCacheRefreshListener
Every cached JWK set.
cipher - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
Encrypts the private half.
cipher - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.SigningKeyJwkMapper
Decrypts the private half of a key.
clock - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Source of the current time.
clock - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Source of the current time.
com.irurueta.authserver.authorization.infrastructure.keys - package com.irurueta.authserver.authorization.infrastructure.keys
Signing keys of the authorization server: key encryption and generation, the JWK sources and the signed token service built on them.
create(Path) - Static method in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Creates the secret file, readable by its owner only where the file system supports it.

D

DatabaseJwkSourceConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.keys
Serves the signing keys kept by the key use cases.
DatabaseJwkSourceConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.DatabaseJwkSourceConfiguration
 
decoder - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Verifies tokens.
decrypt(byte[]) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmTotpSecretCipher
 
decrypt(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmKeyCipher
Decrypts a text produced by AesGcmKeyCipher.encrypt(String).
DevKeyEncryptionSecret - Class in com.irurueta.authserver.authorization.infrastructure.keys
Provides the key-encryption inputs when the dev profile is active, so a developer does not have to configure anything: a random passphrase and salt are generated once per machine, stored in a file under ~/.irurueta-auth-server/ that only the owner can read, and reused at every start, which keeps the signing keys persisted in the development database decryptable across restarts.
DevKeyEncryptionSecret() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
 
digest(String, String) - Static method in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
Hashes a token with a message digest algorithm.
DIRECTORY - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Directory, under the user's home, that holds the per-machine secret.

E

encoder - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Signs tokens.
encrypt(byte[]) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmTotpSecretCipher
 
encrypt(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmKeyCipher
Encrypts a text.
encryptor - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmKeyCipher
The encryptor derived from the passphrase and the salt.
encryptor - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmTotpSecretCipher
The encryptor derived from the passphrase and the salt of this purpose.
equals(Object) - Method in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Indicates whether some other object is "equal to" this one.

F

FILE_NAME - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Name of the file that holds the per-machine secret.

G

generate() - Method in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
 
generate(Instant) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
Generates a key in the SigningKeyStatus.NEXT state.
generateKeyPair() - Static method in class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
Generates an RSA key pair.
get() - Method in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Gets the set, loading it when none is cached or the cached one has expired.

H

hash(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
 
hashCode() - Method in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Returns a hash code value for this object.
HmacTrustedDeviceTokenSigner - Class in com.irurueta.authserver.authorization.infrastructure.keys
TrustedDeviceTokenSigner that signs the trusted-device cookie with HMAC-SHA256, under a key derived from the key-encryption secret for this purpose only (PurposeKeyDerivation).
HmacTrustedDeviceTokenSigner(PurposeKeyDerivation) - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
Derives the signing key.

I

issue(String, String, Duration) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Issues a signed token.
issuer - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Issuer written to, and required of, every token.
ITERATIONS - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
PBKDF2 iterations; a key is derived once per purpose, when its bean is created.

J

JwkCacheRefreshListener - Class in com.irurueta.authserver.authorization.infrastructure.keys
Drops every cached JWK set when the signing keys rotate, so the next token or JWKS request sees the new keys without waiting for the cache to expire.
JwkCacheRefreshListener() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.JwkCacheRefreshListener
 
jwkSource(CachedJwkSet) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.DatabaseJwkSourceConfiguration
Creates the source of the public JWKS.
jwtEncoder(CachedJwkSet) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.DatabaseJwkSourceConfiguration
Creates the encoder that signs tokens with the active key.

K

key - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
The signing key.
KEY_ALGORITHM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
Algorithm that derives the key of a purpose.
KEY_BITS - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
Size of a derived key in bits (AES-256 / HMAC-SHA256).
KEY_SIZE - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
Size in bits of the generated RSA keys.
KeyEncryptionConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.keys
Reads the key-encryption inputs from configuration (authserver.keys.encryption.password and authserver.keys.encryption.salt, taken from the environment in production).
KeyEncryptionConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionConfiguration
 
keyEncryptionProperties(String, String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Creates the key-encryption inputs from configuration or, when that is missing, from the per-machine file.
keyEncryptionProperties(String, String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionConfiguration
Creates the key-encryption inputs.
KeyEncryptionProperties - Record Class in com.irurueta.authserver.authorization.infrastructure.keys
Inputs of the encryption of private signing keys at rest.
KeyEncryptionProperties(String, String) - Constructor for record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Validates the properties.
keyFor(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
Derives the key of a purpose.

L

load(Path) - Static method in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Reads the per-machine secret from a directory, creating it first when it does not exist yet.
loadedAt - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Instant at which the cached set was loaded.
loader - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Loads the set.

M

mac(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
Computes the signature of a token.

N

NimbusSignedTokenService - Class in com.irurueta.authserver.authorization.infrastructure.keys
Issues and verifies purpose-bound tokens as JWTs signed with the active signing key and verified against the published keys.
NimbusSignedTokenService(JwtEncoder, JWKSource<SecurityContext>, Clock, String) - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Creates the service.

O

onRotation(SigningKeysRotatedEvent) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.JwkCacheRefreshListener
Refreshes every cache.
OWNER_ONLY - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
POSIX permissions of the secret file.

P

PASSPHRASE_BYTES - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Number of random bytes of the generated passphrase.
password - Variable in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
The field for the password record component.
password() - Method in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Returns the value of the password record component.
properties - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
The passphrase and the salt of the key-encryption secret.
publishedJwkSet(PublishedSigningKeysUseCase, SigningKeyJwkMapper, Clock, Duration) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.DatabaseJwkSourceConfiguration
Creates the cached set of public keys.
PURPOSE - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.AesGcmTotpSecretCipher
Label of the purpose the key is derived for.
PURPOSE - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
Label of the purpose the key is derived for.
PurposeKeyDerivation - Class in com.irurueta.authserver.authorization.infrastructure.keys
Derives, from the key-encryption secret (KeyEncryptionProperties), a distinct salt and key for each purpose other than the encryption of signing keys, so no two uses share a key: a key exposed or misused for one purpose says nothing about the others.
PurposeKeyDerivation() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
 

R

random - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
Source of randomness.
RANDOM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Source of the generated values.
refresh() - Method in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
Drops the cached set, so the next read loads it again.
RsaSigningKeyGenerator - Class in com.irurueta.authserver.authorization.infrastructure.keys
Generates RSA signing keys for the RS256 algorithm.
RsaSigningKeyGenerator() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.RsaSigningKeyGenerator
 

S

salt - Variable in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
The field for the salt record component.
salt() - Method in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Returns the value of the salt record component.
SALT_ALGORITHM - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
Algorithm that derives the salt of a purpose.
SALT_BYTES - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.DevKeyEncryptionSecret
Number of random bytes of the generated salt.
saltFor(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.PurposeKeyDerivation
Derives the salt of a purpose.
SecureTokenGenerator - Class in com.irurueta.authserver.authorization.infrastructure.keys
TokenGenerator that creates tokens from a SecureRandom and hashes them with SHA-256.
SecureTokenGenerator() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
 
SEPARATOR - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
Separator between the token and its signature.
sign(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
 
signingJwkSet(ActiveSigningKeyUseCase, SigningKeyJwkMapper, Clock, Duration) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.DatabaseJwkSourceConfiguration
Creates the cached set holding only the active key, with its private half.
SigningKeyJwkMapper - Class in com.irurueta.authserver.authorization.infrastructure.keys
Maps the domain SigningKey onto Nimbus JSON Web Keys: the public set lists the public half of every key it is given, whereas the signing set holds the single active key with its private half, decrypted with the AesGcmKeyCipher.
SigningKeyJwkMapper() - Constructor for class com.irurueta.authserver.authorization.infrastructure.keys.SigningKeyJwkMapper
 

T

toJwk(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.SigningKeyJwkMapper
Parses a JSON Web Key.
TOKEN_BYTES - Static variable in class com.irurueta.authserver.authorization.infrastructure.keys.SecureTokenGenerator
Number of random bytes of a token.
toPublicJwkSet(List<SigningKey>) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.SigningKeyJwkMapper
Builds the set of public keys.
toSigningJwkSet(Optional<SigningKey>) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.SigningKeyJwkMapper
Builds the set holding the active key, with its private half.
toString() - Method in record class com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionProperties
Describes the properties without revealing them.
ttl - Variable in class com.irurueta.authserver.authorization.infrastructure.keys.CachedJwkSet
How long a loaded set is kept.

V

verify(String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.HmacTrustedDeviceTokenSigner
 
verify(String, String) - Method in class com.irurueta.authserver.authorization.infrastructure.keys.NimbusSignedTokenService
Verifies a token.
A C D E F G H I J K L M N O P R S T V 
All Classes and Interfaces|All Packages|Constant Field Values