Commit 5fbd9049 authored by Greg Messner's avatar Greg Messner
Browse files

Added methods to get authToken, authType, and secretToken (#119).

parent b0e1aac8
...@@ -515,7 +515,34 @@ public class GitLabApi { ...@@ -515,7 +515,34 @@ public class GitLabApi {
* @return the current sudo as ID, will return null if not in sudo mode * @return the current sudo as ID, will return null if not in sudo mode
*/ */
public Integer getSudoAsId() { public Integer getSudoAsId() {
return (this.apiClient.getSudoAsId()); return (apiClient.getSudoAsId());
}
/**
* Get the auth token being used by this client.
*
* @return the auth token being used by this client
*/
public String getAuthToken() {
return (apiClient.getAuthToken());
}
/**
* Get the secret token.
*
* @return the secret token
*/
public String getSecretToken() {
return (apiClient.getSecretToken());
}
/**
* Get the TokenType this client is using.
*
* @return the TokenType this client is using
*/
public TokenType getTokenType() {
return (apiClient.getTokenType());
} }
/** /**
......
...@@ -219,6 +219,33 @@ public class GitLabApiClient { ...@@ -219,6 +219,33 @@ public class GitLabApiClient {
clientConfig.register(JacksonJson.class); clientConfig.register(JacksonJson.class);
} }
/**
* Get the auth token being used by this client.
*
* @return the auth token being used by this client
*/
String getAuthToken() {
return (authToken);
}
/**
* Get the secret token.
*
* @return the secret token
*/
String getSecretToken() {
return (secretToken);
}
/**
* Get the TokenType this client is using.
*
* @return the TokenType this client is using
*/
TokenType getTokenType() {
return (tokenType);
}
/** /**
* Set the ID of the user to sudo as. * Set the ID of the user to sudo as.
* *
......
Supports Markdown
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