Class GitLabAuth

java.lang.Object
io.vertx.mutiny.ext.auth.oauth2.providers.GitLabAuth
All Implemented Interfaces:
MutinyDelegate

public class GitLabAuth extends Object implements MutinyDelegate
Simplified factory to create an OAuth2Auth for GitLab.com. https://gitlab.com/help/api/oauth2.md

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • GitLabAuth
  • Field Details

  • Constructor Details

    • GitLabAuth

      public GitLabAuth(io.vertx.ext.auth.oauth2.providers.GitLabAuth delegate)
      Create a new instance of GitLabAuth delegating to the given (non-null) instance of GitLabAuth.
    • GitLabAuth

      public GitLabAuth(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.auth.oauth2.providers.GitLabAuth getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret)
      Create a OAuth2Auth provider for GitLab.com.
      Parameters:
      clientId - the client id given to you by GitLab
      clientSecret - the client secret given to you by GitLab
    • create

      public static OAuth2Auth create(Vertx vertx, String site, String clientId, String clientSecret)
      Create a OAuth2Auth provider for GitLab.

      This method allows to specify custom GitLab domain.

      Parameters:
      site - root URL for the provider without trailing slashes, eg. https://gitlab.com
      clientId - the client id given to you by GitLab
      clientSecret - the client secret given to you by GitLab
    • create

      public static OAuth2Auth create(Vertx vertx, String site, String clientId, String clientSecret, io.vertx.core.http.HttpClientOptions httpClientOptions)
      Create a OAuth2Auth provider for GitLab.
      Parameters:
      site - root URL for the provider without trailing slashes, eg. https://gitlab.com
      clientId - the client id given to you by GitLab
      clientSecret - the client secret given to you by GitLab
      httpClientOptions - custom http client options
    • newInstance

      public static GitLabAuth newInstance(io.vertx.ext.auth.oauth2.providers.GitLabAuth delegate)
      Creates a new instance of the GitLabAuth.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object