org.jenkins.wso2.appfactory
Class CarbonSecurityRealm

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.security.SecurityRealm>
      extended by hudson.security.SecurityRealm
          extended by hudson.security.AbstractPasswordBasedSecurityRealm
              extended by org.jenkins.wso2.appfactory.CarbonSecurityRealm
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>, org.acegisecurity.userdetails.UserDetailsService

public class CarbonSecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm


Nested Class Summary
static class CarbonSecurityRealm.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
static String JENKINS_SERVER_ADMIN_PASSWORD
           
static String JENKINS_SERVER_ADMIN_USERNAME
           
 
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION
 
Constructor Summary
CarbonSecurityRealm()
           
 
Method Summary
protected  org.acegisecurity.userdetails.UserDetails authenticate(String username, String password)
           
protected  boolean authenticateJenkinsSystemUser(String password)
           
protected  org.acegisecurity.userdetails.UserDetails createUserDetails(String username, String password)
           
static CarbonSecurityRealm.DescriptorImpl install()
           
protected  boolean isJenkinsSystemUser(String userName)
           
 hudson.security.GroupDetails loadGroupByGroupname(String groupname)
           
 org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
           
 
Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm
createCliAuthenticator, createSecurityComponents
 
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, commenceSignup, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JENKINS_SERVER_ADMIN_USERNAME

public static final String JENKINS_SERVER_ADMIN_USERNAME
See Also:
Constant Field Values

JENKINS_SERVER_ADMIN_PASSWORD

public static final String JENKINS_SERVER_ADMIN_PASSWORD
See Also:
Constant Field Values
Constructor Detail

CarbonSecurityRealm

@DataBoundConstructor
public CarbonSecurityRealm()
Method Detail

install

@Extension
public static CarbonSecurityRealm.DescriptorImpl install()

authenticate

protected org.acegisecurity.userdetails.UserDetails authenticate(String username,
                                                                 String password)
                                                          throws org.acegisecurity.AuthenticationException
Specified by:
authenticate in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.AuthenticationException

createUserDetails

protected org.acegisecurity.userdetails.UserDetails createUserDetails(String username,
                                                                      String password)

isJenkinsSystemUser

protected boolean isJenkinsSystemUser(String userName)

authenticateJenkinsSystemUser

protected boolean authenticateJenkinsSystemUser(String password)

loadUserByUsername

public org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username)
                                                             throws org.acegisecurity.userdetails.UsernameNotFoundException,
                                                                    org.springframework.dao.DataAccessException
Specified by:
loadUserByUsername in interface org.acegisecurity.userdetails.UserDetailsService
Specified by:
loadUserByUsername in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException

loadGroupByGroupname

public hudson.security.GroupDetails loadGroupByGroupname(String groupname)
                                                  throws org.acegisecurity.userdetails.UsernameNotFoundException,
                                                         org.springframework.dao.DataAccessException
Specified by:
loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealm
Throws:
org.acegisecurity.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException


Copyright © 2015 WSO2 Inc. All rights reserved.