net.qrivy.jbioapi
Class BiometricLoginModule
java.lang.Object
net.qrivy.jbioapi.BiometricLoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
public class BiometricLoginModule
- extends java.lang.Object
- implements javax.security.auth.spi.LoginModule
A JAAS LoginModule that verifies the user via a BioAPI compliant BSP.
The BiometricLoginModule looks for the following JAAS authentication options:
| bspUuid |
The required UUID of the BiometricServiceProvider to use |
| deviceid |
The ID number of the device, by default 0 |
| storageDirectory |
The directory to read the BIRs from, by default /etc/bioapi/birs |
- Author:
- Michael R. Crusoe
|
Method Summary |
boolean |
abort()
|
boolean |
commit()
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler _cbHandler,
java.util.Map _sharedState,
java.util.Map _options)
|
boolean |
login()
|
boolean |
logout()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BiometricLoginModule
public BiometricLoginModule()
initialize
public void initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler _cbHandler,
java.util.Map _sharedState,
java.util.Map _options)
- Specified by:
initialize in interface javax.security.auth.spi.LoginModule
login
public boolean login()
throws javax.security.auth.login.LoginException
- Specified by:
login in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
commit
public boolean commit()
throws javax.security.auth.login.LoginException
- Specified by:
commit in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
abort
public boolean abort()
throws javax.security.auth.login.LoginException
- Specified by:
abort in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException
logout
public boolean logout()
throws javax.security.auth.login.LoginException
- Specified by:
logout in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException