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 .