public static enum GoogleRobotUsernamePasswordModule.Strategy extends Enum<GoogleRobotUsernamePasswordModule.Strategy>
Enum Constant and Description |
---|
CLOUD_PLATFORM |
GERRIT |
Modifier and Type | Method and Description |
---|---|
com.cloudbees.plugins.credentials.domains.Domain |
getDomain() |
com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement |
getScope() |
abstract String |
getUsername(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) |
boolean |
matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements) |
static GoogleRobotUsernamePasswordModule.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GoogleRobotUsernamePasswordModule.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoogleRobotUsernamePasswordModule.Strategy GERRIT
public static final GoogleRobotUsernamePasswordModule.Strategy CLOUD_PLATFORM
public static GoogleRobotUsernamePasswordModule.Strategy[] values()
for (GoogleRobotUsernamePasswordModule.Strategy c : GoogleRobotUsernamePasswordModule.Strategy.values()) System.out.println(c);
public static GoogleRobotUsernamePasswordModule.Strategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic com.cloudbees.plugins.credentials.domains.Domain getDomain()
public com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement getScope()
public boolean matches(List<com.cloudbees.plugins.credentials.domains.DomainRequirement> requirements)
requirements
- provided DomainRequirement
to check.public abstract String getUsername(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
credentials
- a given GoogleRobotCredentials
.GoogleRobotCredentials
.Copyright © 2016–2019. All rights reserved.