Created
June 17, 2020 21:11
-
-
Save luissilvazup/c8b56b9cd1611f44d1b59044090dc6b0 to your computer and use it in GitHub Desktop.
OCP Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class O_OpenClosedProblem { | |
private static class AuthenticateLogin{ | |
public boolean login(User user, String provider){ | |
ConnectionDAO connectionDAO = new ConnectionDAO("root", ""); | |
Connection connection = connectionDAO.createConnection(); | |
if(provider.equalsIgnoreCase("Linkedin")){ | |
//autêntica o login com o Oauth Linkedin | |
} | |
else{ | |
//autêntica o login com informações do banco de dados | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment