br.com.m4rc310.gql.security.IMAuthUserProvider Maven / Gradle / Ivy
The newest version!
package br.com.m4rc310.gql.security;
import br.com.m4rc310.gql.dto.MUser;
/**
* IMAuthUserProvider interface.
*
* @author marcelo
* @version $Id: $Id
*/
public interface IMAuthUserProvider {
/**
* authUser.
*
* @param username a {@link java.lang.String} object
* @param password a {@link java.lang.Object} object
* @return a {@link br.com.m4rc310.gql.dto.MUser} object
* @throws java.lang.Exception if any.
*/
MUser authUser(String username, Object password) throws Exception;
/**
* getUserFromUsername.
*
* @param username a {@link java.lang.String} object
* @return a {@link br.com.m4rc310.gql.dto.MUser} object
*/
MUser getUserFromUsername(String username);
/**
* isValidUser.
*
* @param user a {@link br.com.m4rc310.gql.dto.MUser} object
* @return a boolean
*/
boolean isValidUser(MUser user);
}