Class SecurityDomain.RealmBuilder
java.lang.Object
org.wildfly.security.auth.server.SecurityDomain.RealmBuilder
- Enclosing class:
SecurityDomain
A builder for a realm within a security domain.
- Author:
- David M. Lloyd, Darran Lofthouse
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs this realm info and adds it into the domain.getName()Get the realm name.Get the name rewriter.getRealm()Get the security realm.Get the role decoder.Get the role mapper.setNameRewriter(NameRewriter nameRewriter) Deprecated.setPrincipalRewriter(Function<Principal, Principal> principalRewriter) Set the name rewriter.setRoleDecoder(RoleDecoder roleDecoder) Set the role decoder.setRoleMapper(RoleMapper roleMapper) Set the role mapper.
-
Method Details
-
getName
-
getRealm
-
getRoleMapper
-
setRoleMapper
Set the role mapper.- Parameters:
roleMapper- the role mapper (may not benull)
-
getPrincipalRewriter
-
setPrincipalRewriter
public SecurityDomain.RealmBuilder setPrincipalRewriter(Function<Principal, Principal> principalRewriter) Set the name rewriter.- Parameters:
principalRewriter- the name rewriter (may not benull)
-
setNameRewriter
Deprecated. -
getRoleDecoder
-
setRoleDecoder
Set the role decoder.- Parameters:
roleDecoder- the role decoder (may not benull)
-
build
Constructs this realm info and adds it into the domain.- Returns:
- the security domain builder
-