Interface OAuth2Credentials<T extends OAuth2ScopeRequirement>

Type Parameters:
T - The type of requirements to which this credential should be applied.
All Superinterfaces:
com.cloudbees.plugins.credentials.Credentials, Describable<com.cloudbees.plugins.credentials.Credentials>, ExtensionPoint, Serializable
All Known Subinterfaces:
OAuth2Token<T>, StandardUsernameOAuth2Credentials<T>

public interface OAuth2Credentials<T extends OAuth2ScopeRequirement> extends com.cloudbees.plugins.credentials.Credentials
Credentials that have an OAuth2 access token component
  • Method Details

    • getAccessToken

      Secret getAccessToken(T requirement)
      Returns an access token scoped to the set of scopes specified by the provided OAuth2ScopeRequirement
      Returns:
      the scoped access token