Class SecurityService

java.lang.Object
com.bluebell.greenhouse.radicle.security.services.SecurityService

@Service public class SecurityService extends Object
Service-layer for security operations.
Version:
3.0.6
Author:
Stephen Prizio
  • Constructor Details

    • SecurityService

      public SecurityService()
  • Method Details

    • isUserTaken

      public org.javatuples.Triplet<Boolean,Boolean,User> isUserTaken(String usernameOrEmail)
      Checks for a user with the given username or email. Returns a pair of booleans, corresponding to username and email respectively. Ex: if this method return Pair<true, false>, this means that a user with the given username was identified but not an email
      Parameters:
      usernameOrEmail - test string
      Returns:
      Triplet
    • login

      public org.javatuples.Pair<String,User> login(String usernameOrEmail, String password)
      Attempts to log a user in for the given email/username string and password.
      Parameters:
      usernameOrEmail - username email comparison string
      password - password
      Returns:
      Pair