Package org.wildfly.security.auth.realm
Class JaasSecurityRealm
- java.lang.Object
-
- org.wildfly.security.auth.realm.JaasSecurityRealm
-
- All Implemented Interfaces:
SecurityRealm
public class JaasSecurityRealm extends Object implements SecurityRealm
A JAAS basedSecurityRealmimplementation.- Author:
- Stefan Guilhen
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM
-
-
Constructor Summary
Constructors Constructor Description JaasSecurityRealm(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
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)-
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, getRealmIdentity, handleRealmEvent
-
-
-
-
Constructor Detail
-
JaasSecurityRealm
public JaasSecurityRealm(String entry)
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)
-
JaasSecurityRealm
public JaasSecurityRealm(String entry, ClassLoader classLoader)
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
public JaasSecurityRealm(String entry, String jaasConfigFilePath)
Construct a new instance.- Parameters:
entry- JAAS configuration file entry (must not benull)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 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 Detail
-
getRealmIdentity
public RealmIdentity getRealmIdentity(Principal principal)
- 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
-
-