public class OpenShiftBearerTokenCredentialImpl extends com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl implements TokenProducer
For the specification, see: https://docs.openshift.com/enterprise/3.0/architecture/additional_concepts/authentication.html#oauth
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenShiftBearerTokenCredentialImpl.DescriptorImpl |
static class |
OpenShiftBearerTokenCredentialImpl.Token |
static class |
OpenShiftBearerTokenCredentialImpl.TokenResponseError |
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorcom.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials.NameProvider| Modifier and Type | Field and Description |
|---|---|
protected static long |
EARLY_EXPIRE_DELAY_SEC |
| Constructor and Description |
|---|
OpenShiftBearerTokenCredentialImpl(com.cloudbees.plugins.credentials.CredentialsScope scope,
String id,
String description,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
protected static OpenShiftBearerTokenCredentialImpl.Token |
extractTokenFromLocation(String location) |
protected static String |
getBasicAuthenticationHeader(String username,
hudson.util.Secret password) |
String |
getToken(String oauthServerURL,
String caCertData,
boolean skipTlsVerify) |
getPassword, getUsernameequals, getDescription, getId, hashCodegetDescriptor, getScopeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitprotected static final long EARLY_EXPIRE_DELAY_SEC
protected static OpenShiftBearerTokenCredentialImpl.Token extractTokenFromLocation(String location) throws OpenShiftBearerTokenCredentialImpl.TokenResponseError
protected static String getBasicAuthenticationHeader(String username, hudson.util.Secret password)
public String getToken(String oauthServerURL, String caCertData, boolean skipTlsVerify) throws IOException
getToken in interface TokenProducerIOExceptionCopyright © 2016–2020. All rights reserved.