Package org.jenkinsci.plugins
Class BitbucketSecurityRealm
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<SecurityRealm>
-
- hudson.security.SecurityRealm
-
- org.jenkinsci.plugins.BitbucketSecurityRealm
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<SecurityRealm>
public class BitbucketSecurityRealm extends SecurityRealm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BitbucketSecurityRealm.ConverterImpl
static class
BitbucketSecurityRealm.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
SecurityRealm.SecurityComponents
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
-
-
Constructor Summary
Constructors Constructor Description BitbucketSecurityRealm()
BitbucketSecurityRealm(String clientID, String clientSecret, Secret secretClientSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allowsSignup()
SecurityRealm.SecurityComponents
createSecurityComponents()
org.kohsuke.stapler.HttpResponse
doCommenceLogin(org.kohsuke.stapler.StaplerRequest request, String referer)
org.kohsuke.stapler.HttpResponse
doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
String
getClientID()
String
getClientSecret()
Deprecated.String
getLoginUrl()
Secret
getSecretClientSecret()
GroupDetails
loadGroupByGroupname(String groupName)
UserDetails
loadUserByUsername(String username)
void
setClientID(String clientID)
void
setClientSecret(String clientSecret)
Deprecated.void
setSecretClientSecret(Secret secretClientSecret)
-
Methods inherited from class hudson.security.SecurityRealm
all, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getPostLogOutUrl, getPostLogOutUrl2, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, loadGroupByGroupname2, loadUserByUsername2, setCaptchaSupport, validateCaptcha
-
-
-
-
Method Detail
-
getClientID
public String getClientID()
- Returns:
- the clientID
-
setClientID
public void setClientID(String clientID)
- Parameters:
clientID
- the clientID to set
-
getClientSecret
@Deprecated public String getClientSecret()
Deprecated.- Returns:
- the clientSecret
-
setClientSecret
@Deprecated public void setClientSecret(String clientSecret)
Deprecated.- Parameters:
clientSecret
- the clientSecret to set
-
getSecretClientSecret
public Secret getSecretClientSecret()
- Returns:
- the secretClientSecret
-
setSecretClientSecret
public void setSecretClientSecret(Secret secretClientSecret)
- Parameters:
secretClientSecret
- the secretClientSecret to set
-
doCommenceLogin
public org.kohsuke.stapler.HttpResponse doCommenceLogin(org.kohsuke.stapler.StaplerRequest request, @Header("Referer") String referer) throws IOException
- Throws:
IOException
-
doFinishLogin
public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request) throws IOException
- Throws:
IOException
-
createSecurityComponents
public SecurityRealm.SecurityComponents createSecurityComponents()
- Specified by:
createSecurityComponents
in classSecurityRealm
-
loadUserByUsername
public UserDetails loadUserByUsername(String username)
- Overrides:
loadUserByUsername
in classSecurityRealm
-
loadGroupByGroupname
public GroupDetails loadGroupByGroupname(String groupName)
- Overrides:
loadGroupByGroupname
in classSecurityRealm
-
allowsSignup
public boolean allowsSignup()
- Overrides:
allowsSignup
in classSecurityRealm
-
getLoginUrl
public String getLoginUrl()
- Overrides:
getLoginUrl
in classSecurityRealm
-
-