Package org.wildfly.security.auth.realm
Class DistributedSecurityRealm
- java.lang.Object
-
- org.wildfly.security.auth.realm.DistributedSecurityRealm
-
- All Implemented Interfaces:
SecurityRealm
public class DistributedSecurityRealm extends Object implements SecurityRealm
A realm for authentication and authorization of identities distributed between multiple realms.- Author:
- Martin Mazanek
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM
-
-
Constructor Summary
Constructors Constructor Description DistributedSecurityRealm(boolean ignoreUnavailableRealms, Consumer<Integer> unavailableRealmCallback, SecurityRealm... securityRealms)Construct a new instance.DistributedSecurityRealm(SecurityRealm... securityRealms)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportLevelgetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)RealmIdentitygetRealmIdentity(Principal principal)RealmIdentitygetRealmIdentity(Evidence evidence)-
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.SecurityRealm
getCredentialAcquireSupport, getRealmIdentity, handleRealmEvent
-
-
-
-
Constructor Detail
-
DistributedSecurityRealm
public DistributedSecurityRealm(SecurityRealm... securityRealms)
-
DistributedSecurityRealm
public DistributedSecurityRealm(boolean ignoreUnavailableRealms, Consumer<Integer> unavailableRealmCallback, SecurityRealm... securityRealms)Construct a new instance.- Parameters:
ignoreUnavailableRealms- allow to specify that the search should continue on to the next realm if a realm happens to be unavailableunavailableRealmCallback- a callback that can be used to emit realm unavailability, can benullsecurityRealms- references to one or more security realms for authentication and authorization
-
-
Method Detail
-
getRealmIdentity
public RealmIdentity getRealmIdentity(Evidence evidence) throws RealmUnavailableException
- Specified by:
getRealmIdentityin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
getRealmIdentity
public RealmIdentity getRealmIdentity(Principal principal) throws RealmUnavailableException
- Specified by:
getRealmIdentityin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
getCredentialAcquireSupport
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Specified by:
getCredentialAcquireSupportin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
public SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Specified by:
getEvidenceVerifySupportin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
-