Package org.wildfly.security.auth.realm
Class CachingModifiableSecurityRealm
java.lang.Object
org.wildfly.security.auth.realm.CachingSecurityRealm
org.wildfly.security.auth.realm.CachingModifiableSecurityRealm
- All Implemented Interfaces:
ModifiableSecurityRealm,SecurityRealm
public class CachingModifiableSecurityRealm
extends CachingSecurityRealm
implements ModifiableSecurityRealm
A wrapper class that provides caching capabilities for a ModifiableSecurityRealm and its identities.
- Author:
- Pedro Igor
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.CachingModifiableSecurityRealm(CacheableSecurityRealm realm, RealmIdentityCache cache, Supplier<Provider[]> providerSupplier) Creates a new instance. -
Method Summary
Methods inherited from class org.wildfly.security.auth.realm.CachingSecurityRealm
getCacheableRealm, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, handleRealmEvent, removeAllFromCache, removeFromCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.server.ModifiableSecurityRealm
getRealmIdentityForUpdateMethods inherited from interface org.wildfly.security.auth.server.SecurityRealm
getCredentialAcquireSupport, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, getRealmIdentity, getRealmIdentity, handleRealmEvent
-
Constructor Details
-
CachingModifiableSecurityRealm
Creates a new instance.- Parameters:
realm- theCacheableSecurityRealmwhoseRealmIdentityshould be cached.cache- theRealmIdentityCacheinstance
-
CachingModifiableSecurityRealm
public CachingModifiableSecurityRealm(CacheableSecurityRealm realm, RealmIdentityCache cache, Supplier<Provider[]> providerSupplier) Creates a new instance.- Parameters:
realm- theCacheableSecurityRealmwhoseRealmIdentityshould be cached.cache- theRealmIdentityCacheinstanceproviderSupplier- the provider supplier to use for verification purposes (must not benull)
-
-
Method Details
-
getRealmIdentityForUpdate
public ModifiableRealmIdentity getRealmIdentityForUpdate(Principal principal) throws RealmUnavailableException - Specified by:
getRealmIdentityForUpdatein interfaceModifiableSecurityRealm- Throws:
RealmUnavailableException
-
getRealmIdentityIterator
- Specified by:
getRealmIdentityIteratorin interfaceModifiableSecurityRealm- Throws:
RealmUnavailableException
-