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
;
public
enum
TokenType
{
PRIVATE_TOKEN
(
"private_token"
,
"PRIVATE-TOKEN"
,
"%s"
),
ACCESS_TOKEN
(
"access_token"
,
"Authorization"
,
"Bearer %s"
);
PRIVATE_TOKEN
(
"private_token"
,
"PRIVATE-TOKEN"
,
"%s"
),
ACCESS_TOKEN
(
"access_token"
,
"Authorization"
,
"Bearer %s"
);
private
final
String
tokenParamName
;
private
final
String
tokenHeaderName
;
private
final
String
tokenHeaderFormat
;
private
final
String
tokenParamName
;
private
final
String
tokenHeaderName
;
private
final
String
tokenHeaderFormat
;
/**
* Constructor
*
* @param tokenParamName The url parameter name when using AuthMethod.URL_PARAMETER
* @param tokenHeaderName The header name when using AuthMethod.HEADER
* @param tokenHeaderFormat The header format for String.format 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
*/
TokenType
(
String
tokenParamName
,
String
tokenHeaderName
,
String
tokenHeaderFormat
)
{
this
.
tokenParamName
=
tokenParamName
;
this
.
tokenHeaderName
=
tokenHeaderName
;
this
.
tokenHeaderFormat
=
tokenHeaderFormat
;
}
TokenType
(
String
tokenParamName
,
String
tokenHeaderName
,
String
tokenHeaderFormat
)
{
this
.
tokenParamName
=
tokenParamName
;
this
.
tokenHeaderName
=
tokenHeaderName
;
this
.
tokenHeaderFormat
=
tokenHeaderFormat
;
}
public
String
getTokenParamName
()
{
return
tokenParamName
;
}
public
String
getTokenParamName
()
{
return
tokenParamName
;
}
public
String
getTokenHeaderName
()
{
return
tokenHeaderName
;
}
public
String
getTokenHeaderName
()
{
return
tokenHeaderName
;
}
public
String
getTokenHeaderFormat
()
{
return
tokenHeaderFormat
;
}
public
String
getTokenHeaderFormat
()
{
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