Package org.wildfly.security.auth.server
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.
-
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
Get the realm name.- Returns:
- the realm name (not
null)
-
getRealm
Get the security realm.- Returns:
- the security realm (not
null)
-
getRoleMapper
Get the role mapper.- Returns:
- the role mapper (not
null)
-
setRoleMapper
Set the role mapper.- Parameters:
roleMapper- the role mapper (may not benull)
-
getPrincipalRewriter
Get the name rewriter.- Returns:
- the name rewriter (not
null)
-
setPrincipalRewriter
public SecurityDomain.RealmBuilder setPrincipalRewriter(Function<Principal, Principal> principalRewriter) Set the name rewriter.- Parameters:
principalRewriter- the name rewriter (may not benull)
-
setNameRewriter
Deprecated. -
getRoleDecoder
Get the role decoder.- Returns:
- the role decoder (not
null)
-
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
-