Class ElytronPropertiesFileRecorder
java.lang.Object
io.quarkus.elytron.security.runtime.ElytronPropertiesFileRecorder
The runtime security recorder class that provides methods for creating RuntimeValues for the deployment security objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRuntimeValue<org.wildfly.security.auth.server.SecurityRealm>createEmbeddedRealm(SecurityUsersConfig propertiesConfig) Create a runtime value for a SimpleMapBackedSecurityRealmRuntimeValue<org.wildfly.security.auth.server.SecurityRealm>createRealm(SecurityUsersConfig propertiesConfig) Create a runtime value for a LegacyPropertiesSecurityRealmloadEmbeddedRealm(RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm, SecurityUsersConfig propertiesConfig, MPRealmRuntimeConfig runtimeConfig) Load the embedded user and role information into the SecurityRealmloadRealm(RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm, SecurityUsersConfig propertiesConfig) 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()
-
-
Method Details
-
loadRealm
public Runnable loadRealm(RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm, SecurityUsersConfig propertiesConfig) throws Exception Load the user.properties and roles.properties files into the SecurityRealm- Parameters:
realm- - a LegacyPropertiesSecurityRealmpropertiesConfig- - properties config with a realm configuration info- Throws:
Exception
-
loadEmbeddedRealm
public Runnable loadEmbeddedRealm(RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> realm, SecurityUsersConfig propertiesConfig, MPRealmRuntimeConfig runtimeConfig) throws Exception Load the embedded user and role information into the SecurityRealm- Parameters:
realm- - a SimpleMapBackedSecurityRealmpropertiesConfig- - properties config with the realm config- Throws:
Exception
-
createRealm
public RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> createRealm(SecurityUsersConfig propertiesConfig) throws Exception Create a runtime value for a LegacyPropertiesSecurityRealm- Parameters:
propertiesConfig- - properties config- Returns:
- - runtime value wrapper for the SecurityRealm
- Throws:
Exception
-
createEmbeddedRealm
public RuntimeValue<org.wildfly.security.auth.server.SecurityRealm> createEmbeddedRealm(SecurityUsersConfig propertiesConfig) Create a runtime value for a SimpleMapBackedSecurityRealm- Parameters:
propertiesConfig- - properties config with the realm config- Returns:
- - runtime value wrapper for the SecurityRealm
- Throws:
Exception
-