Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Defined Classes
- class UserType1 : SecurityInterface
- class UserType2 : SecurityInterface
- class UserType3 : SecurityInterface
- //Use classes
- SecurityInterface authentication = GetCorrectUserTypeObject(); //the methds gets the correct UserType object base on who is supposed to authenticate.
- authentication.DoAuthenticate();
Add Comment
Please, Sign In to add comment