Class AggregateSecurityRealm
java.lang.Object
org.wildfly.security.auth.realm.AggregateSecurityRealm
- All Implemented Interfaces:
org.wildfly.security.auth.server.SecurityRealm
public final class AggregateSecurityRealm
extends Object
implements org.wildfly.security.auth.server.SecurityRealm
A realm which directs authentication to one realm and authorization to another. The authentication realm need
not provide any authorization information. Likewise the authorization realm need not provide any authentication
credential acquisition or verification capabilities.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM -
Constructor Summary
ConstructorsConstructorDescriptionAggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, Function<Principal, Principal> principalTransformer, org.wildfly.security.auth.server.SecurityRealm... authorizationRealms) AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, org.wildfly.security.auth.server.SecurityRealm authorizationRealm) Construct a new instance.AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, org.wildfly.security.auth.server.SecurityRealm... authorizationRealms) -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.security.auth.SupportLevelgetCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) org.wildfly.security.auth.SupportLevelgetEvidenceVerifySupport(Class<? extends org.wildfly.security.evidence.Evidence> evidenceType, String algorithmName) org.wildfly.security.auth.server.RealmIdentitygetRealmIdentity(Principal principal) org.wildfly.security.auth.server.RealmIdentitygetRealmIdentity(org.wildfly.security.evidence.Evidence evidence) voidhandleRealmEvent(org.wildfly.security.auth.server.event.RealmEvent event) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.server.SecurityRealm
getCredentialAcquireSupport, getRealmIdentity
-
Constructor Details
-
AggregateSecurityRealm
public AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, org.wildfly.security.auth.server.SecurityRealm authorizationRealm) Construct a new instance.- Parameters:
authenticationRealm- the realm to use for authenticationauthorizationRealm- the realm to use for authorization
-
AggregateSecurityRealm
public AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, org.wildfly.security.auth.server.SecurityRealm... authorizationRealms) -
AggregateSecurityRealm
-
-
Method Details
-
getRealmIdentity
public org.wildfly.security.auth.server.RealmIdentity getRealmIdentity(org.wildfly.security.evidence.Evidence evidence) throws org.wildfly.security.auth.server.RealmUnavailableException - Specified by:
getRealmIdentityin interfaceorg.wildfly.security.auth.server.SecurityRealm- Throws:
org.wildfly.security.auth.server.RealmUnavailableException
-
getRealmIdentity
public org.wildfly.security.auth.server.RealmIdentity getRealmIdentity(Principal principal) throws org.wildfly.security.auth.server.RealmUnavailableException - Specified by:
getRealmIdentityin interfaceorg.wildfly.security.auth.server.SecurityRealm- Throws:
org.wildfly.security.auth.server.RealmUnavailableException
-
getCredentialAcquireSupport
public org.wildfly.security.auth.SupportLevel getCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws org.wildfly.security.auth.server.RealmUnavailableException - Specified by:
getCredentialAcquireSupportin interfaceorg.wildfly.security.auth.server.SecurityRealm- Throws:
org.wildfly.security.auth.server.RealmUnavailableException
-
getEvidenceVerifySupport
public org.wildfly.security.auth.SupportLevel getEvidenceVerifySupport(Class<? extends org.wildfly.security.evidence.Evidence> evidenceType, String algorithmName) throws org.wildfly.security.auth.server.RealmUnavailableException - Specified by:
getEvidenceVerifySupportin interfaceorg.wildfly.security.auth.server.SecurityRealm- Throws:
org.wildfly.security.auth.server.RealmUnavailableException
-
handleRealmEvent
public void handleRealmEvent(org.wildfly.security.auth.server.event.RealmEvent event) - Specified by:
handleRealmEventin interfaceorg.wildfly.security.auth.server.SecurityRealm
-