Class EncryptedPropertiesSecurityRealm.Builder
- java.lang.Object
-
- org.infinispan.server.security.realm.EncryptedPropertiesSecurityRealm.Builder
-
- Enclosing class:
- EncryptedPropertiesSecurityRealm
public static class EncryptedPropertiesSecurityRealm.Builder extends Object
A builder for properties security realms.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptedPropertiesSecurityRealmbuild()Builds theEncryptedPropertiesSecurityRealm.EncryptedPropertiesSecurityRealm.BuildersetDefaultRealm(String defaultRealm)Set the default realm name to use if no realm name is discovered in the properties file.EncryptedPropertiesSecurityRealm.BuildersetGroupsAttribute(String groupsAttribute)Where this realm returns anAuthorizationIdentityset the key on the Attributes that will be used to hold the group membership information.EncryptedPropertiesSecurityRealm.BuildersetPlainText(boolean plainText)Set format of users property file - if the passwords are stored in plain text.
-
-
-
Method Detail
-
setGroupsAttribute
public EncryptedPropertiesSecurityRealm.Builder setGroupsAttribute(String groupsAttribute)
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
public EncryptedPropertiesSecurityRealm.Builder setDefaultRealm(String defaultRealm)
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
public EncryptedPropertiesSecurityRealm.Builder setPlainText(boolean plainText)
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
public EncryptedPropertiesSecurityRealm build()
Builds theEncryptedPropertiesSecurityRealm.- Returns:
- built
EncryptedPropertiesSecurityRealm
-
-