Class DigestPasswordLoginModule
- java.lang.Object
-
- org.apache.karaf.jaas.modules.AbstractKarafLoginModule
-
- org.apache.karaf.jaas.modules.properties.DigestPasswordLoginModule
-
- All Implemented Interfaces:
LoginModule
public class DigestPasswordLoginModule extends AbstractKarafLoginModule
JAAS Login module for user / password, based on two properties files.
-
-
Field Summary
-
Fields inherited from class org.apache.karaf.jaas.modules.AbstractKarafLoginModule
bundleContext, callbackHandler, commitSucceeded, debug, detailedLoginExcepion, options, principals, roleDiscriminator, rolePolicy, subject, succeeded, user
-
-
Constructor Summary
Constructors Constructor Description DigestPasswordLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoPasswordDigest(String nonce, String created, byte[] password)StringdoPasswordDigest(String nonce, String created, String password)byte[]generateDigest(byte[] inputBytes)Generate a (SHA1) digest of the input bytes.voidinitialize(Subject sub, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)booleanlogin()-
Methods inherited from class org.apache.karaf.jaas.modules.AbstractKarafLoginModule
abort, checkPassword, clear, commit, initialize, logout
-
-
-
-
Method Detail
-
initialize
public void initialize(Subject sub, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
-
generateDigest
public byte[] generateDigest(byte[] inputBytes)
Generate a (SHA1) digest of the input bytes. The MessageDigest instance that backs this method is cached for efficiency.- Parameters:
inputBytes- the bytes to digest- Returns:
- the digest of the input bytes
-
login
public boolean login() throws LoginException- Throws:
LoginException
-
-