Class SecurityDomain.RealmBuilder

java.lang.Object
org.wildfly.security.auth.server.SecurityDomain.RealmBuilder
Enclosing class:
SecurityDomain

public static class SecurityDomain.RealmBuilder extends Object
A builder for a realm within a security domain.
  • Method Details

    • getName

      public String getName()
      Get the realm name.
      Returns:
      the realm name (not null)
    • getRealm

      public SecurityRealm getRealm()
      Get the security realm.
      Returns:
      the security realm (not null)
    • getRoleMapper

      public RoleMapper getRoleMapper()
      Get the role mapper.
      Returns:
      the role mapper (not null)
    • setRoleMapper

      public SecurityDomain.RealmBuilder setRoleMapper(RoleMapper roleMapper)
      Set the role mapper.
      Parameters:
      roleMapper - the role mapper (may not be null)
    • getPrincipalRewriter

      public Function<Principal,Principal> 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 be null)
    • setNameRewriter

      @Deprecated public SecurityDomain.RealmBuilder setNameRewriter(NameRewriter nameRewriter)
      Deprecated.
    • getRoleDecoder

      public RoleDecoder getRoleDecoder()
      Get the role decoder.
      Returns:
      the role decoder (not null)
    • setRoleDecoder

      public SecurityDomain.RealmBuilder setRoleDecoder(RoleDecoder roleDecoder)
      Set the role decoder.
      Parameters:
      roleDecoder - the role decoder (may not be null)
    • build

      public SecurityDomain.Builder build()
      Constructs this realm info and adds it into the domain.
      Returns:
      the security domain builder