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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(T requirement) Returns an access token scoped to the set of scopes specified by the providedOAuth2ScopeRequirementMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
Method Details
-
getAccessToken
Returns an access token scoped to the set of scopes specified by the providedOAuth2ScopeRequirement- Returns:
- the scoped access token
-