All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.auth.service.interfaces.IRegistrationService Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.4.0
Show newest version
package com.netgrif.application.engine.auth.service.interfaces;

import com.netgrif.application.engine.auth.domain.RegisteredUser;
import com.netgrif.application.engine.auth.service.InvalidUserTokenException;
import com.netgrif.application.engine.auth.web.requestbodies.NewUserRequest;
import com.netgrif.application.engine.auth.web.requestbodies.RegistrationRequest;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

public interface IRegistrationService {

    void removeExpiredUsers();

    void resetExpiredToken();

    void changePassword(RegisteredUser user, String newPassword);

    void encodeUserPassword(RegisteredUser user);

    boolean stringMatchesUserPassword(RegisteredUser user, String passwordToCompare);

    boolean verifyToken(String token);

    RegisteredUser createNewUser(NewUserRequest newUser);

    RegisteredUser registerUser(RegistrationRequest registrationRequest) throws InvalidUserTokenException;

    RegisteredUser resetPassword(String email);

    RegisteredUser recover(String email, String newPassword);

    String generateTokenKey();

    String[] decodeToken(String token) throws InvalidUserTokenException;

    String encodeToken(String email, String tokenKey);

    LocalDateTime generateExpirationDate();

    boolean isPasswordSufficient(String password);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy