public GitlabHTTPRequestor authenticate(String token, TokenType type, AuthMethod method) {
        this.apiToken = token;
        this.tokenType = type;
        this.authMethod = method;
        return this;
    }
public GitlabHTTPRequestor authenticate ( String token , TokenType type , AuthMethod method ) { this . apiToken = token ; this . tokenType = type ; this . authMethod = method ; return this ; }
Sets authentication data for the request.
Has a fluent api for method chaining.

@param token  The token value
@param type   The type of the token
@param method The authentication method
@return this