Class EncryptedPropertiesSecurityRealm.Builder
java.lang.Object
org.infinispan.server.security.realm.EncryptedPropertiesSecurityRealm.Builder
- Enclosing class:
- EncryptedPropertiesSecurityRealm
A builder for properties security realms.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theEncryptedPropertiesSecurityRealm.setDefaultRealm(String defaultRealm) Set the default realm name to use if no realm name is discovered in the properties file.setGroupsAttribute(String groupsAttribute) Where this realm returns anAuthorizationIdentityset the key on the Attributes that will be used to hold the group membership information.setPlainText(boolean plainText) Set format of users property file - if the passwords are stored in plain text.
-
Method Details
-
setGroupsAttribute
Where this realm returns anAuthorizationIdentityset the key on the Attributes that will be used to hold the group membership information.- Parameters:
groupsAttribute- the key on the Attributes that will be used to hold the group membership information.- Returns:
- this
EncryptedPropertiesSecurityRealm.Builder
-
setDefaultRealm
Set the default realm name to use if no realm name is discovered in the properties file.- Parameters:
defaultRealm- the default realm name if one is not discovered in the properties file.- Returns:
- this
EncryptedPropertiesSecurityRealm.Builder
-
setPlainText
Set format of users property file - if the passwords are stored in plain text. Otherwise is HEX( MD5( username ":" realm ":" password ) ) expected.- Parameters:
plainText- if the passwords are stored in plain text.- Returns:
- this
EncryptedPropertiesSecurityRealm.Builder
-
build
Builds theEncryptedPropertiesSecurityRealm.- Returns:
- built
EncryptedPropertiesSecurityRealm
-