Class ElytronPropertiesFileRecorder
java.lang.Object
io.quarkus.elytron.security.properties.runtime.ElytronPropertiesFileRecorder
The runtime security recorder class that provides methods for creating RuntimeValues for the deployment security objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElytronPropertiesFileRecorder(io.quarkus.runtime.RuntimeValue<MPRealmRuntimeConfig> runtimeConfig, SecurityUsersConfig propertiesConfig) -
Method Summary
Modifier and TypeMethodDescriptionio.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> Create a runtime value for a SimpleMapBackedSecurityRealmio.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> Create a runtime value for a LegacyPropertiesSecurityRealmloadEmbeddedRealm(io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm) Load the embedded user and role information into the SecurityRealmloadRealm(io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm) Load the user.properties and roles.properties files into the SecurityRealm
-
Field Details
-
log
static final org.jboss.logging.Logger log
-
-
Constructor Details
-
ElytronPropertiesFileRecorder
public ElytronPropertiesFileRecorder(io.quarkus.runtime.RuntimeValue<MPRealmRuntimeConfig> runtimeConfig, SecurityUsersConfig propertiesConfig)
-
-
Method Details
-
loadRealm
public Runnable loadRealm(io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm) throws Exception Load the user.properties and roles.properties files into the SecurityRealm- Parameters:
realm- - a LegacyPropertiesSecurityRealm- Throws:
Exception
-
loadEmbeddedRealm
public Runnable loadEmbeddedRealm(io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm) throws Exception Load the embedded user and role information into the SecurityRealm- Parameters:
realm- - a SimpleMapBackedSecurityRealm- Throws:
Exception
-
createRealm
public io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> createRealm() throws ExceptionCreate a runtime value for a LegacyPropertiesSecurityRealm- Returns:
- - runtime value wrapper for the SecurityRealm
- Throws:
Exception
-
createEmbeddedRealm
public io.quarkus.runtime.RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> createEmbeddedRealm()Create a runtime value for a SimpleMapBackedSecurityRealm- Returns:
- - runtime value wrapper for the SecurityRealm
- Throws:
Exception
-