Skip to content

Instantly share code, notes, and snippets.

@gitmatheus
Last active March 26, 2021 00:56
Show Gist options
  • Save gitmatheus/8d5a4c0856196b6f93e5ab1cec462377 to your computer and use it in GitHub Desktop.
Save gitmatheus/8d5a4c0856196b6f93e5ab1cec462377 to your computer and use it in GitHub Desktop.
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