Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
f328e64f
Commit
f328e64f
authored
Nov 04, 2015
by
Tim Olshansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve whitespace issues
parent
feaaf03d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
TokenType.java
src/main/java/org/gitlab/api/TokenType.java
+21
-21
No files found.
src/main/java/org/gitlab/api/TokenType.java
View file @
f328e64f
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
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment