Class PropertiesRealmConfig
- java.lang.Object
-
- io.quarkus.elytron.security.runtime.PropertiesRealmConfig
-
public class PropertiesRealmConfig extends Object
A configuration object for a properties resource based realm configuration, LegacyPropertiesSecurityRealm It consists of a users.properties that has the format: user1=password1 user2=password2 and a roles.properties that has the format: user1=role1,role2,...,roleN1 user2=role21,role2,...,roleN2
-
-
Field Summary
Fields Modifier and Type Field Description booleanenabledDetermine whether security via the file realm is enabled.booleanplainTextIf the properties are stored in plain text.StringrealmNameThe realm name.StringrolesClasspath resource name of properties file containing user to role mappings.StringusersClasspath resource name of properties file containing user to password mappings.
-
Constructor Summary
Constructors Constructor Description PropertiesRealmConfig()
-
-
-
Field Detail
-
realmName
@ConfigItem(defaultValue="Quarkus") public String realmName
The realm name. This is used when generating a hashed password
-
enabled
@ConfigItem public boolean enabled
Determine whether security via the file realm is enabled.
-
plainText
@ConfigItem public boolean plainText
If the properties are stored in plain text. If this is false (the default) then it is expected that the passwords are of the form HEX( MD5( username ":" realm ":" password ) )
-
users
@ConfigItem(defaultValue="users.properties") public String users
Classpath resource name of properties file containing user to password mappings. See Users.properties.
-
roles
@ConfigItem(defaultValue="roles.properties") public String roles
Classpath resource name of properties file containing user to role mappings. See Roles.properties.
-
-