org.jenkinsci.plugins
Class BitbucketSecurityRealm

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.security.SecurityRealm>
      extended by hudson.security.SecurityRealm
          extended by org.jenkinsci.plugins.BitbucketSecurityRealm
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>

public class BitbucketSecurityRealm
extends hudson.security.SecurityRealm


Nested Class Summary
static class BitbucketSecurityRealm.ConverterImpl
           
static class BitbucketSecurityRealm.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
hudson.security.SecurityRealm.SecurityComponents
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION
 
Constructor Summary
BitbucketSecurityRealm()
           
BitbucketSecurityRealm(String clientID, String clientSecret)
           
 
Method Summary
 boolean allowsSignup()
           
 hudson.security.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()
           
 String getLoginUrl()
           
 hudson.security.GroupDetails loadGroupByGroupname(String groupName)
           
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
           
 void setClientID(String clientID)
           
 void setClientSecret(String clientSecret)
           
 
Methods inherited from class hudson.security.SecurityRealm
all, canLogOut, commenceSignup, createCliAuthenticator, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitbucketSecurityRealm

@DataBoundConstructor
public BitbucketSecurityRealm(String clientID,
                                                   String clientSecret)

BitbucketSecurityRealm

public BitbucketSecurityRealm()
Method Detail

getClientID

public String getClientID()
Returns:
the clientID

setClientID

public void setClientID(String clientID)
Parameters:
clientID - the clientID to set

getClientSecret

public String getClientSecret()
Returns:
the clientSecret

setClientSecret

public void setClientSecret(String clientSecret)
Parameters:
clientSecret - the clientSecret to set

doCommenceLogin

public org.kohsuke.stapler.HttpResponse doCommenceLogin(org.kohsuke.stapler.StaplerRequest request,
                                                        @Header(value="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 hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
Specified by:
createSecurityComponents in class hudson.security.SecurityRealm

loadUserByUsername

public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
Overrides:
loadUserByUsername in class hudson.security.SecurityRealm

loadGroupByGroupname

public hudson.security.GroupDetails loadGroupByGroupname(String groupName)
Overrides:
loadGroupByGroupname in class hudson.security.SecurityRealm

allowsSignup

public boolean allowsSignup()
Overrides:
allowsSignup in class hudson.security.SecurityRealm

getLoginUrl

public String getLoginUrl()
Overrides:
getLoginUrl in class hudson.security.SecurityRealm


Copyright © 2004-2013. All Rights Reserved.