Package org.wildfly.security.auth.realm
Class JaasSecurityRealm
java.lang.Object
org.wildfly.security.auth.realm.JaasSecurityRealm
- All Implemented Interfaces:
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 TypeMethodDescriptiongetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) getRealmIdentity(Principal principal) Methods inherited from class java.lang.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
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)jaasConfigFilePath- path to JAAS configuration file
-
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 filecallbackHandler- callbackHandler to pass to LoginContextclassLoader- classLoader to use with LoginContext, this class loader must contain LoginModule CallbackHandler classes
-
-
Method Details
-
getRealmIdentity
- Specified by:
getRealmIdentityin interfaceSecurityRealm
-
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
-