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
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM -
Constructor Summary
ConstructorsConstructorDescriptionJaasSecurityRealm(String entry) Construct a new instance.JaasSecurityRealm(String entry, ClassLoader classLoader) Construct a new instance.JaasSecurityRealm(String entry, String jaasConfigFilePath) Construct a new instance.JaasSecurityRealm(String entry, String jaasConfigFilePath, ClassLoader classLoader) Construct a new instance.JaasSecurityRealm(String entry, String jaasConfigFilePath, ClassLoader classLoader, CallbackHandler callbackHandler) Construct a new instance. -
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) 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, getRealmIdentity, handleRealmEvent
-
Constructor Details
-
JaasSecurityRealm
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)
-
JaasSecurityRealm
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)classLoader- classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classes
-
JaasSecurityRealm
-
JaasSecurityRealm
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)jaasConfigFilePath- path to JAAS configuration fileclassLoader- 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 benull)jaasConfigFilePath- path to JAAS configuration fileclassLoader- classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classescallbackHandler- callbackHandler to pass to LoginContext
-
-
Method Details
-
getRealmIdentity
- Specified by:
getRealmIdentityin interfaceorg.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:
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
-