Class JaasSecurityRealm

java.lang.Object
org.wildfly.security.auth.realm.JaasSecurityRealm
All Implemented Interfaces:
org.wildfly.security.auth.server.SecurityRealm

public class JaasSecurityRealm extends Object implements org.wildfly.security.auth.server.SecurityRealm
A JAAS based SecurityRealm implementation.
Author:
Stefan Guilhen
  • Constructor Details

    • JaasSecurityRealm

      public JaasSecurityRealm(String entry)
      Construct a new instance.
      Parameters:
      entry - JAAS configuration file entry (must not be null)
    • JaasSecurityRealm

      public JaasSecurityRealm(String entry, ClassLoader classLoader)
      Construct a new instance.
      Parameters:
      entry - JAAS configuration file entry (must not be null)
      classLoader - classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classes
    • JaasSecurityRealm

      public JaasSecurityRealm(String entry, String jaasConfigFilePath)
      Construct a new instance.
      Parameters:
      entry - JAAS configuration file entry (must not be null)
      jaasConfigFilePath - path to JAAS configuration file
    • JaasSecurityRealm

      public JaasSecurityRealm(String entry, String jaasConfigFilePath, ClassLoader classLoader)
      Construct a new instance.
      Parameters:
      entry - JAAS configuration file entry (must not be null)
      jaasConfigFilePath - path to JAAS configuration file
      classLoader - classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classes
    • JaasSecurityRealm

      public JaasSecurityRealm(String entry, String jaasConfigFilePath, ClassLoader classLoader, CallbackHandler callbackHandler)
      Construct a new instance.
      Parameters:
      entry - JAAS configuration file entry (must not be null)
      jaasConfigFilePath - path to JAAS configuration file
      classLoader - classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classes
      callbackHandler - callbackHandler to pass to LoginContext
  • Method Details

    • getRealmIdentity

      public org.wildfly.security.auth.server.RealmIdentity getRealmIdentity(Principal principal)
      Specified by:
      getRealmIdentity in interface org.wildfly.security.auth.server.SecurityRealm
    • 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