Class SecurityDomain.RealmBuilder

  • Enclosing class:
    SecurityDomain

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

      • 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)
      • getPrincipalRewriter

        public Function<Principal,​Principal> getPrincipalRewriter()
        Get the name rewriter.
        Returns:
        the name rewriter (not null)
      • getRoleDecoder

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

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