Class SecurityOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.security.SecurityOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
@Service
@Transactional
public class SecurityOrchestrator
extends Object
implements GenericOrchestrator
Owns the unit of work for the security endpoints.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEmailTaken(String email) Determines whether the given email is already in use.booleanisUsernameTaken(String username) Determines whether the given username is already in use.Logs aUserinto bluebell.voidrequestPasswordReset(String email) Requests a password reset for the given email.voidresetPassword(String token, String password) Resets a password against the given token.
-
Constructor Details
-
SecurityOrchestrator
public SecurityOrchestrator()
-
-
Method Details
-
isUsernameTaken
Determines whether the given username is already in use.- Parameters:
username- username- Returns:
- true if taken
-
isEmailTaken
Determines whether the given email is already in use.- Parameters:
email- email- Returns:
- true if taken
-
login
-
requestPasswordReset
Requests a password reset for the given email.- Parameters:
email- email
-
resetPassword
-