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

emu.grasscutter.auth.Authenticator Maven / Gradle / Ivy

There is a newer version: 1.7.3
Show newest version
package emu.grasscutter.auth;

import emu.grasscutter.server.http.objects.*;

/**
 * Handles username/password authentication from the client.
 *
 * @param  The response object type. Should be {@link LoginResultJson} or {@link
 *     ComboTokenResJson}
 */
public interface Authenticator {

    /**
     * Attempt to authenticate the client with the provided credentials.
     *
     * @param request The authentication request wrapped in a {@link
     *     AuthenticationSystem.AuthenticationRequest} object.
     * @return The result of the login in an object.
     */
    T authenticate(AuthenticationSystem.AuthenticationRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy