Class CachingModifiableSecurityRealm

java.lang.Object
org.wildfly.security.auth.realm.CachingSecurityRealm
org.wildfly.security.auth.realm.CachingModifiableSecurityRealm
All Implemented Interfaces:
org.wildfly.security.auth.server.ModifiableSecurityRealm, org.wildfly.security.auth.server.SecurityRealm

public class CachingModifiableSecurityRealm extends CachingSecurityRealm implements org.wildfly.security.auth.server.ModifiableSecurityRealm

A wrapper class that provides caching capabilities for a ModifiableSecurityRealm and its identities.

Author:
Pedro Igor
  • Constructor Details

    • CachingModifiableSecurityRealm

      public CachingModifiableSecurityRealm(CacheableSecurityRealm realm, org.wildfly.security.cache.RealmIdentityCache cache)
      Creates a new instance.
      Parameters:
      realm - the CacheableSecurityRealm whose RealmIdentity should be cached.
      cache - the RealmIdentityCache instance
    • CachingModifiableSecurityRealm

      public CachingModifiableSecurityRealm(CacheableSecurityRealm realm, org.wildfly.security.cache.RealmIdentityCache cache, Supplier<Provider[]> providerSupplier)
      Creates a new instance.
      Parameters:
      realm - the CacheableSecurityRealm whose RealmIdentity should be cached.
      cache - the RealmIdentityCache instance
      providerSupplier - the provider supplier to use for verification purposes (must not be null)
  • Method Details

    • getRealmIdentityForUpdate

      public org.wildfly.security.auth.server.ModifiableRealmIdentity getRealmIdentityForUpdate(Principal principal) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getRealmIdentityForUpdate in interface org.wildfly.security.auth.server.ModifiableSecurityRealm
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getRealmIdentityIterator

      public org.wildfly.security.auth.server.ModifiableRealmIdentityIterator getRealmIdentityIterator() throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getRealmIdentityIterator in interface org.wildfly.security.auth.server.ModifiableSecurityRealm
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException