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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Secret
getAccessToken(T requirement)
Returns an access token scoped to the set of scopes specified by the providedOAuth2ScopeRequirement
-
-
-
Method Detail
-
getAccessToken
Secret getAccessToken(T requirement)
Returns an access token scoped to the set of scopes specified by the providedOAuth2ScopeRequirement
- Returns:
- the scoped access token
-
-