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

org.kohsuke.github.authorization.UserAuthorizationProvider Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha-2
Show newest version
package org.kohsuke.github.authorization;

import javax.annotation.CheckForNull;

/**
 * Interface for all user-related authorization providers.
 *
 * {@link AuthorizationProvider}s can apply to a number of different account types. This interface applies to providers
 * for user accounts, ones that have a login or should query the "/user" endpoint for the login matching this
 * credential.
 */
public interface UserAuthorizationProvider extends AuthorizationProvider {

    /**
     * Gets the user login name.
     *
     * @return the user login for this provider, or {@code null} if the login value should be queried from the "/user"
     *         endpoint.
     */
    @CheckForNull
    String getLogin();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy