Interface PropertiesRealmConfig
public interface PropertiesRealmConfig
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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Determine whether security via the file realm is enabled.static Stringhelp()booleanIf the properties are stored in plain text.The realm name.roles()Classpath resource name of properties file containing user to role mappings.toString()users()Classpath resource name of properties file containing user to password mappings.
-
Method Details
-
realmName
The realm name. This is used when generating a hashed password -
enabled
@WithDefault("false") boolean enabled()Determine whether security via the file realm is enabled. -
plainText
@WithDefault("false") 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
Classpath resource name of properties file containing user to password mappings. See Users.properties. -
roles
Classpath resource name of properties file containing user to role mappings. See Roles.properties. -
help
-
toString
String toString()
-