public class DcosAuthImpl extends TokenAuthProvider
TokenAuthProvider.Providers| Modifier and Type | Field and Description |
|---|---|
static String |
DCOS_AUTH_COOKIE
The name of the cookie that contains the authentication token needed for future requests.
|
protected static String |
DCOS_AUTH_PAYLOAD
The JSON payload expected by the DC/OS login end point.
|
| Constructor and Description |
|---|
DcosAuthImpl(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
String |
getToken()
Get a new authentication token that will be used to deploy or update a Marathon application.
|
boolean |
updateTokenCredentials(com.cloudbees.plugins.credentials.Credentials tokenCredentials) |
getTokenAuthProviderpublic static final String DCOS_AUTH_COOKIE
protected static final String DCOS_AUTH_PAYLOAD
public DcosAuthImpl(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
public String getToken() throws AuthenticationException
TokenAuthProvidergetToken in class TokenAuthProviderAuthenticationException - If the token retrieval process encounters an error.public boolean updateTokenCredentials(com.cloudbees.plugins.credentials.Credentials tokenCredentials)
throws AuthenticationException
updateTokenCredentials in class TokenAuthProviderAuthenticationExceptionCopyright © 2016–2017. All rights reserved.