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

    Constructors
    Constructor
    Description
    AggregateSecurityRealm(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 Type
    Method
    Description
    org.wildfly.security.auth.SupportLevel
    getCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
     
    org.wildfly.security.auth.SupportLevel
    getEvidenceVerifySupport(Class<? extends org.wildfly.security.evidence.Evidence> evidenceType, String algorithmName)
     
    org.wildfly.security.auth.server.RealmIdentity
     
    org.wildfly.security.auth.server.RealmIdentity
    getRealmIdentity(org.wildfly.security.evidence.Evidence evidence)
     
    void
    handleRealmEvent(org.wildfly.security.auth.server.event.RealmEvent event)
     

    Methods inherited from class 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 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 authentication
      authorizationRealm - the realm to use for authorization
    • AggregateSecurityRealm

      public AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, org.wildfly.security.auth.server.SecurityRealm... authorizationRealms)
    • AggregateSecurityRealm

      public AggregateSecurityRealm(org.wildfly.security.auth.server.SecurityRealm authenticationRealm, Function<Principal, Principal> principalTransformer, org.wildfly.security.auth.server.SecurityRealm... authorizationRealms)
  • 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:
      getRealmIdentity in interface org.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:
      getRealmIdentity in interface org.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:
      getCredentialAcquireSupport in interface org.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:
      getEvidenceVerifySupport in interface org.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:
      handleRealmEvent in interface org.wildfly.security.auth.server.SecurityRealm