Package org.wildfly.security.auth.realm
Class AggregateSecurityRealm
- java.lang.Object
-
- org.wildfly.security.auth.realm.AggregateSecurityRealm
-
- All Implemented Interfaces:
SecurityRealm
public final class AggregateSecurityRealm extends Object implements 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
Constructors Constructor Description AggregateSecurityRealm(SecurityRealm authenticationRealm, Function<Principal,Principal> principalTransformer, SecurityRealm... authorizationRealms)AggregateSecurityRealm(SecurityRealm authenticationRealm, SecurityRealm authorizationRealm)Construct a new instance.AggregateSecurityRealm(SecurityRealm authenticationRealm, SecurityRealm... authorizationRealms)
-
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)voidhandleRealmEvent(RealmEvent event)-
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
-
-
-
-
Constructor Detail
-
AggregateSecurityRealm
public AggregateSecurityRealm(SecurityRealm authenticationRealm, SecurityRealm authorizationRealm)
Construct a new instance.- Parameters:
authenticationRealm- the realm to use for authenticationauthorizationRealm- the realm to use for authorization
-
AggregateSecurityRealm
public AggregateSecurityRealm(SecurityRealm authenticationRealm, SecurityRealm... authorizationRealms)
-
AggregateSecurityRealm
public AggregateSecurityRealm(SecurityRealm authenticationRealm, Function<Principal,Principal> principalTransformer, SecurityRealm... authorizationRealms)
-
-
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
-
handleRealmEvent
public void handleRealmEvent(RealmEvent event)
- Specified by:
handleRealmEventin interfaceSecurityRealm
-
-