org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers
Class SimplePropertyFileUserVerifier

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.PasswordVerifier
      extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
          extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.SimplePropertyFileUserVerifier
All Implemented Interfaces:
ESUserVerifier

public class SimplePropertyFileUserVerifier
extends UserVerifier

This verifier can be used to store user and passwords in a property file. Entries in the property file look should look like this: user = password

Author:
wesendonk

Nested Class Summary
static class SimplePropertyFileUserVerifier.Hash
          Hash algorithms supported by SPFV verifier.
 
Constructor Summary
SimplePropertyFileUserVerifier(ESOrgUnitProvider orgUnitProvider, String propertyFilePath)
          Default constructor.
SimplePropertyFileUserVerifier(ESOrgUnitProvider orgUnitProvider, String propertyFilePath, SimplePropertyFileUserVerifier.Hash hash)
          Constructor with ability to select hash algorithm for password.
 
Method Summary
 void init(ESOrgUnitProvider orgUnitProvider)
          Initializes this verifier.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.UserVerifier
verifyUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePropertyFileUserVerifier

public SimplePropertyFileUserVerifier(ESOrgUnitProvider orgUnitProvider,
                                      String propertyFilePath)
                               throws FatalESException
Default constructor. No hash will be used for passwords

Parameters:
orgUnitProvider - provides access to users and groups
propertyFilePath - path to file
Throws:
FatalESException - in case of failure

SimplePropertyFileUserVerifier

public SimplePropertyFileUserVerifier(ESOrgUnitProvider orgUnitProvider,
                                      String propertyFilePath,
                                      SimplePropertyFileUserVerifier.Hash hash)
                               throws FatalESException
Constructor with ability to select hash algorithm for password.

Parameters:
orgUnitProvider - provides access to users and groups
propertyFilePath - path to file
hash - selected hash
Throws:
FatalESException - if hash is null
Method Detail

init

public void init(ESOrgUnitProvider orgUnitProvider)
Initializes this verifier.

Parameters:
orgUnitProvider - the ESOrgUnitProvider that can be used to obtain organizational units
See Also:
ESUserVerifier.init(org.eclipse.emf.emfstore.server.model.ESOrgUnitProvider)


Copyright © 2016. All Rights Reserved.