Class SimpleMapBackedSecurityRealm

  • All Implemented Interfaces:
    SecurityRealm

    public class SimpleMapBackedSecurityRealm
    extends Object
    implements SecurityRealm
    Simple map-backed security realm. Uses an in-memory copy-on-write map methodology to map user names to entries. Since this security realm implementation holds all names in memory, it may not be the best choice for very large security realms.
    Author:
    David M. Lloyd, Darran Lofthouse
    • Constructor Detail

      • SimpleMapBackedSecurityRealm

        public SimpleMapBackedSecurityRealm​(NameRewriter rewriter)
        Construct a new instance.
        Parameters:
        rewriter - the name rewriter to use (cannot be null)
      • SimpleMapBackedSecurityRealm

        public SimpleMapBackedSecurityRealm​(NameRewriter rewriter,
                                            Supplier<Provider[]> providers)
        Construct a new instance.
        Parameters:
        rewriter - the name rewriter to use (cannot be null)
        providers - a supplier of providers for use by this realm (cannot be null)
      • SimpleMapBackedSecurityRealm

        public SimpleMapBackedSecurityRealm()
        Construct a new instance.
      • SimpleMapBackedSecurityRealm

        public SimpleMapBackedSecurityRealm​(Supplier<Provider[]> providers)
        Construct a new instance.
        Parameters:
        providers - a supplier of providers for use by this realm (cannot be null)