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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.AbstractAuthenticationControl
      extended by org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.SimplePropertyFileVerifier
All Implemented Interfaces:
AuthenticationControl

public class SimplePropertyFileVerifier
extends AbstractAuthenticationControl

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 SimplePropertyFileVerifier.Hash
          Hash algorithms supported by SPFV verifier.
 
Constructor Summary
SimplePropertyFileVerifier(String filePath)
          Default constructor.
SimplePropertyFileVerifier(String filePath, SimplePropertyFileVerifier.Hash hash)
          Constructor with ability to select hash algorithm for password.
 
Method Summary
 
Methods inherited from class org.eclipse.emf.emfstore.internal.server.accesscontrol.authentication.verifiers.AbstractAuthenticationControl
logIn, logout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePropertyFileVerifier

public SimplePropertyFileVerifier(String filePath)
                           throws FatalESException
Default constructor. No hash will be used for passwords

Parameters:
filePath - path to password file
Throws:
FatalESException - in case of failure
See Also:
SimplePropertyFileVerifier(String, Hash)

SimplePropertyFileVerifier

public SimplePropertyFileVerifier(String filePath,
                                  SimplePropertyFileVerifier.Hash hash)
                           throws FatalESException
Constructor with ability to select hash algorithm for password.

Parameters:
filePath - path to file
hash - selected hash
Throws:
FatalESException - if hash is null


Copyright © 2015. All Rights Reserved.