@NameWith(value=GoogleContainerRegistryCredential.NameProvider.class, priority=99) public class GoogleContainerRegistryCredential extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements com.cloudbees.plugins.credentials.domains.DomainRestrictedCredentials, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
GoogleRobotCredentials as a username and password when a credential
for Google Container Registry end point is needed.
BACKGROUND: Google Container Registry accepts a username/password
combination that is truly "_token:<oauth_token>".
This credential wraps a service account credential to provide it in this
manner as a StandardUsernamePasswordCredentials for usage with the
new Credentials-aware or
DockerRegistryToken
-aware plugins.
| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleContainerRegistryCredential.DescriptorImpl
Descriptor class for its global configuration.
|
static class |
GoogleContainerRegistryCredential.EnclosingDomainRequirementProvider
We do not have a descriptor, so that we won't show up in the user interface
as a credential that can be explicitly created, so we will not be
discovered by the DescribableDomainRequirementProvider.
|
static class |
GoogleContainerRegistryCredential.NameProvider
Provide a name that the user will understand, in the credential selection
drop-down shown by plugins that requires Docker registry credentials.
|
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor| Constructor and Description |
|---|
GoogleContainerRegistryCredential(String credentialsId,
GoogleContainerRegistryCredentialModule module) |
| Modifier and Type | Method and Description |
|---|---|
com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials |
getCredentials() |
String |
getCredentialsId() |
String |
getDescription() |
GoogleContainerRegistryCredential.DescriptorImpl |
getDescriptor() |
String |
getEmail() |
hudson.util.Secret |
getPassword() |
String |
getUsername() |
boolean |
matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements)
This type of credentials only works for authenticating against registry's
server.
|
equals, getId, hashCode@DataBoundConstructor public GoogleContainerRegistryCredential(String credentialsId, @Nullable GoogleContainerRegistryCredentialModule module)
public String getCredentialsId()
GoogleRobotCredentials that this
Username/Password proxy is wrapping.public String getEmail()
@Nullable public com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials getCredentials()
getCredentialsId()public boolean matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements)
matches in interface com.cloudbees.plugins.credentials.domains.DomainRestrictedCredentialspublic String getDescription()
getDescription in interface com.cloudbees.plugins.credentials.common.StandardCredentialsgetDescription in class com.cloudbees.plugins.credentials.impl.BaseStandardCredentialspublic GoogleContainerRegistryCredential.DescriptorImpl getDescriptor()
getDescriptor in interface com.cloudbees.plugins.credentials.CredentialsgetDescriptor in interface hudson.model.Describable<com.cloudbees.plugins.credentials.Credentials>getDescriptor in class com.cloudbees.plugins.credentials.BaseCredentialspublic String getUsername()
getUsername in interface com.cloudbees.plugins.credentials.common.UsernameCredentialspublic hudson.util.Secret getPassword()
getPassword in interface com.cloudbees.plugins.credentials.common.PasswordCredentialsCopyright © 2004-2015. All Rights Reserved.