Commit f328e64f authored by Tim Olshansky's avatar Tim Olshansky

Resolve whitespace issues

parent feaaf03d
package org.gitlab.api; package org.gitlab.api;
public enum TokenType { public enum TokenType {
PRIVATE_TOKEN("private_token", "PRIVATE-TOKEN", "%s"), PRIVATE_TOKEN("private_token", "PRIVATE-TOKEN", "%s"),
ACCESS_TOKEN("access_token", "Authorization", "Bearer %s"); ACCESS_TOKEN("access_token", "Authorization", "Bearer %s");
private final String tokenParamName; private final String tokenParamName;
private final String tokenHeaderName; private final String tokenHeaderName;
private final String tokenHeaderFormat; private final String tokenHeaderFormat;
/** /**
* Constructor * Constructor
* *
* @param tokenParamName The url parameter name when using AuthMethod.URL_PARAMETER * @param tokenParamName The url parameter name when using AuthMethod.URL_PARAMETER
* @param tokenHeaderName The header name when using AuthMethod.HEADER * @param tokenHeaderName The header name when using AuthMethod.HEADER
* @param tokenHeaderFormat The header format for String.format when using AuthMethod.HEADER * @param tokenHeaderFormat The header format for String.format when using AuthMethod.HEADER
*/ */
TokenType(String tokenParamName, String tokenHeaderName, String tokenHeaderFormat) { TokenType(String tokenParamName, String tokenHeaderName, String tokenHeaderFormat) {
this.tokenParamName = tokenParamName; this.tokenParamName = tokenParamName;
this.tokenHeaderName = tokenHeaderName; this.tokenHeaderName = tokenHeaderName;
this.tokenHeaderFormat = tokenHeaderFormat; this.tokenHeaderFormat = tokenHeaderFormat;
} }
public String getTokenParamName() { public String getTokenParamName() {
return tokenParamName; return tokenParamName;
} }
public String getTokenHeaderName() { public String getTokenHeaderName() {
return tokenHeaderName; return tokenHeaderName;
} }
public String getTokenHeaderFormat() { public String getTokenHeaderFormat() {
return tokenHeaderFormat; return tokenHeaderFormat;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment