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

com.capitalone.dashboard.service.AuthenticationService Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.service;

import org.bson.types.ObjectId;

import com.capitalone.dashboard.model.Authentication;

public interface AuthenticationService {
	
	  /**
     * Fetches all registered users, sorted.
     *
     * @return all users
     */
    Iterable all();


    /**
     * Fetches an AuthenticationObject.
     *
     * @param id authentication unique identifier
     * @return Authentication instance
     */
    Authentication get(ObjectId id);

    /**
     * Creates a new Users and saves it to the store.
     *
     * @param username new Authentication to createCollectorItem
     * @return newly created Authentication object
     */
    org.springframework.security.core.Authentication create(String username, String password);

    /**
     * Updates an existing quthentication instance.
     *
     * @param username Authentication to update
     * @return updated Authentication instance
     */
    String update(String username, String password);

    /**
     * Deletes an existing Authentication instance.
     *
     * @param id unique identifier of authentication to delete
     */
    void delete(ObjectId id);
    
    /**
     * Deletes an existing authentication instance
     */
	void delete(String username);
	
	/**
	 * 
	 * @param username
     * @param password
	 * @return
	 */
	org.springframework.security.core.Authentication authenticate(String username, String password);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy