Class EntraOAuthCredentials
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
io.jenkins.plugins.entraoauth.EntraOAuthCredentials
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.common.StandardUsernameCredentials, com.cloudbees.plugins.credentials.common.UsernameCredentials, com.cloudbees.plugins.credentials.Credentials, com.google.jenkins.plugins.credentials.oauth.OAuth2Credentials<com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement>, com.google.jenkins.plugins.credentials.oauth.StandardUsernameOAuth2Credentials<com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement>, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable
public class EntraOAuthCredentials
extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
implements com.google.jenkins.plugins.credentials.oauth.StandardUsernameOAuth2Credentials<com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement>
Microsoft Entra OAuth credentials with pluggable authentication methods.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.NameProvider -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntraOAuthCredentials(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String tenantId, String clientId, EntraAuthMethod authenticationMethod, String scopes, String username, String authorityHost) -
Method Summary
Modifier and TypeMethodDescriptiongetAccessToken(com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement requirement) Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescriptionMethods inherited from interface com.cloudbees.plugins.credentials.common.UsernameCredentials
isUsernameSecret
-
Field Details
-
DEFAULT_AUTHORITY_HOST
- See Also:
-
-
Constructor Details
-
EntraOAuthCredentials
@DataBoundConstructor public EntraOAuthCredentials(@CheckForNull com.cloudbees.plugins.credentials.CredentialsScope scope, @CheckForNull String id, @CheckForNull String description, @CheckForNull String tenantId, @CheckForNull String clientId, @CheckForNull EntraAuthMethod authenticationMethod, @CheckForNull String scopes, @CheckForNull String username, @CheckForNull String authorityHost)
-
-
Method Details
-
getTenantId
-
getClientId
-
getAuthenticationMethod
-
getScopes
-
getUsername
- Specified by:
getUsernamein interfacecom.cloudbees.plugins.credentials.common.UsernameCredentials
-
getAuthorityHost
-
getScopeList
-
getAccessToken
public Secret getAccessToken(com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement requirement) - Specified by:
getAccessTokenin interfacecom.google.jenkins.plugins.credentials.oauth.OAuth2Credentials<com.google.jenkins.plugins.credentials.oauth.OAuth2ScopeRequirement>
-