public class GoogleContainerRegistryCredentialModule extends Object implements Serializable
GoogleContainerRegistryCredential plugin.| Constructor and Description |
|---|
GoogleContainerRegistryCredentialModule() |
| Modifier and Type | Method and Description |
|---|---|
GoogleContainerRegistryCredentialModule |
forRemote(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) |
String |
getIdentity(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) |
com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement |
getRequirement() |
static GoogleContainerRegistryScopeRequirement |
getScope() |
hudson.util.Secret |
getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) |
static boolean |
matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements) |
public GoogleContainerRegistryCredentialModule()
public String getIdentity(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
credentials - the underlying GoogleRobotCredentials this
plugin is wrapping.credentials. Google Container Registry always expects
this to be "_token".public GoogleContainerRegistryCredentialModule forRemote(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) throws GeneralSecurityException
GeneralSecurityExceptionpublic com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement getRequirement()
public hudson.util.Secret getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
credentials - the underlying GoogleRobotCredentials this
plugin is wrapping.credentials.public static boolean matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements)
requirements - provided DomainRequirement to check.public static GoogleContainerRegistryScopeRequirement getScope()
Copyright © 2004-2015. All Rights Reserved.