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 classBitbucketSecurityRealm.ConverterImplstatic classBitbucketSecurityRealm.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 booleanallowsSignup()SecurityRealm.SecurityComponentscreateSecurityComponents()org.kohsuke.stapler.HttpResponsedoCommenceLogin(org.kohsuke.stapler.StaplerRequest request, String referer)org.kohsuke.stapler.HttpResponsedoFinishLogin(org.kohsuke.stapler.StaplerRequest request)StringgetClientID()StringgetClientSecret()Deprecated.StringgetLoginUrl()SecretgetSecretClientSecret()GroupDetailsloadGroupByGroupname(String groupName)UserDetailsloadUserByUsername(String username)voidsetClientID(String clientID)voidsetClientSecret(String clientSecret)Deprecated.voidsetSecretClientSecret(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:
createSecurityComponentsin classSecurityRealm
-
loadUserByUsername
public UserDetails loadUserByUsername(String username)
- Overrides:
loadUserByUsernamein classSecurityRealm
-
loadGroupByGroupname
public GroupDetails loadGroupByGroupname(String groupName)
- Overrides:
loadGroupByGroupnamein classSecurityRealm
-
allowsSignup
public boolean allowsSignup()
- Overrides:
allowsSignupin classSecurityRealm
-
getLoginUrl
public String getLoginUrl()
- Overrides:
getLoginUrlin classSecurityRealm
-
-