Class KeyEncryptionConfiguration
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.keys.KeyEncryptionConfiguration
@Configuration(proxyBeanMethods=false)
@Profile("!dev")
public class KeyEncryptionConfiguration
extends Object
Reads the key-encryption inputs from configuration (
authserver.keys.encryption.password and
authserver.keys.encryption.salt, taken from the environment in production). Without them the application
does not start. The dev profile uses DevKeyEncryptionSecret instead.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionkeyEncryptionProperties(String password, String salt) Creates the key-encryption inputs.
-
Constructor Details
-
KeyEncryptionConfiguration
public KeyEncryptionConfiguration()
-
-
Method Details
-
keyEncryptionProperties
@Bean public KeyEncryptionProperties keyEncryptionProperties(@Value("${authserver.keys.encryption.password}") String password, @Value("${authserver.keys.encryption.salt}") String salt) Creates the key-encryption inputs.- Parameters:
password- the configured passphrase.salt- the configured hex-encoded salt.- Returns:
- the inputs.
-