Back to project page roodroid.
The source code is released under:
Copyright (c) 2011, Jonathan Perichon & Lucas Gerbeaux Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"...
If you think the Android project roodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package fr.utbm.roodroid.server; //w w w . ja v a 2 s .c o m /** * AuthByPassword * Extends AuthMethod. * * Checks if the password matches the one set. * The password is stored as preferences by the ApplicationManager. * * @author Jonathan Perichon <jonathan.perichon@gmail.com> * @author Lucas Gerbeaux <lucas.gerbeaux@gmail.com> * */ public class AuthByPassword implements AuthMethod { private String password; public AuthByPassword(String password) { this.setPassword(password); } public void setPassword(String password) { this.password = password; } @Override public boolean isAuthorized(String value) { return value.equals(password); } }