Last active
March 26, 2021 00:56
-
-
Save gitmatheus/8d5a4c0856196b6f93e5ab1cec462377 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 MyUser { | |
public String username; | |
public String password; | |
public void validateCredentials() { | |
// calling an static method without creating a new instance of MySecurityClass | |
Boolean authenticated = MySecurityClass.validateCredentials(username, password); | |
System.debug('User username: ' + username); | |
System.debug('User Authentication: ' + authenticated); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment