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
ModifiableSecurityRealmand its identities.- Author:
- Pedro Igor
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM
-
-
Constructor Summary
Constructors Constructor Description CachingModifiableSecurityRealm(CacheableSecurityRealm realm, RealmIdentityCache cache)Creates a new instance.CachingModifiableSecurityRealm(CacheableSecurityRealm realm, RealmIdentityCache cache, Supplier<Provider[]> providerSupplier)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiableRealmIdentitygetRealmIdentityForUpdate(Principal principal)ModifiableRealmIdentityIteratorgetRealmIdentityIterator()-
Methods inherited from class org.wildfly.security.auth.realm.CachingSecurityRealm
getCacheableRealm, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, handleRealmEvent, removeAllFromCache, removeFromCache
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.server.ModifiableSecurityRealm
getRealmIdentityForUpdate
-
Methods inherited from interface org.wildfly.security.auth.server.SecurityRealm
getCredentialAcquireSupport, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, getRealmIdentity, getRealmIdentity, handleRealmEvent
-
-
-
-
Constructor Detail
-
CachingModifiableSecurityRealm
public CachingModifiableSecurityRealm(CacheableSecurityRealm realm, RealmIdentityCache cache)
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 Detail
-
getRealmIdentityForUpdate
public ModifiableRealmIdentity getRealmIdentityForUpdate(Principal principal) throws RealmUnavailableException
- Specified by:
getRealmIdentityForUpdatein interfaceModifiableSecurityRealm- Throws:
RealmUnavailableException
-
getRealmIdentityIterator
public ModifiableRealmIdentityIterator getRealmIdentityIterator() throws RealmUnavailableException
- Specified by:
getRealmIdentityIteratorin interfaceModifiableSecurityRealm- Throws:
RealmUnavailableException
-
-