Class ElytronPropertiesFileRecorder

java.lang.Object
io.quarkus.elytron.security.runtime.ElytronPropertiesFileRecorder

public class ElytronPropertiesFileRecorder extends Object
The runtime security recorder class that provides methods for creating RuntimeValues for the deployment security objects.
  • 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 LegacyPropertiesSecurityRealm
      propertiesConfig - - 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 SimpleMapBackedSecurityRealm
      propertiesConfig - - 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