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)
Retrieve the identity associated with the given
GoogleRobotCredentials . |
com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement |
getRequirement() |
static GoogleContainerRegistryScopeRequirement |
getScope() |
hudson.util.Secret |
getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
Retrieve an access token for the given
GoogleRobotCredentials . |
static boolean |
matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements) |
public GoogleContainerRegistryCredentialModule()
public String getIdentity(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
GoogleRobotCredentials
. Google Container Registry always expects
this to be "_token".public GoogleContainerRegistryCredentialModule forRemote(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) throws GeneralSecurityException
GeneralSecurityException
public com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement getRequirement()
public hudson.util.Secret getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
GoogleRobotCredentials
.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.