Class JenkinsRule.DummySecurityRealm

  • All Implemented Interfaces:
    hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>
    Enclosing class:
    JenkinsRule

    public static class JenkinsRule.DummySecurityRealm
    extends hudson.security.AbstractPasswordBasedSecurityRealm
    See Also:
    JenkinsRule.createDummySecurityRealm()
    • Nested Class Summary

      • 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, AUTHENTICATED_AUTHORITY2, LIST, NO_AUTHENTICATION
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addGroups​(String username, String... groups)
      Associate some groups with a username.
      protected org.acegisecurity.userdetails.UserDetails authenticate​(String username, String password)  
      hudson.security.GroupDetails loadGroupByGroupname​(String groupname)  
      org.acegisecurity.userdetails.UserDetails loadUserByUsername​(String username)  
      • Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm

        authenticate2, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername2
      • Methods inherited from class hudson.security.SecurityRealm

        all, allowsSignup, canLogOut, commenceSignup, commonFilters, createCliAuthenticator, createFilter, doCaptcha, doLogout, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getFrom, getGroupIdStrategy, getLoginUrl, getPostLogOutUrl, getPostLogOutUrl2, getSecurityComponents, getUserIdStrategy, loadGroupByGroupname, setCaptchaSupport, validateCaptcha
    • Method Detail

      • authenticate

        protected org.acegisecurity.userdetails.UserDetails authenticate​(String username,
                                                                         String password)
                                                                  throws org.acegisecurity.AuthenticationException
        Overrides:
        authenticate in class hudson.security.AbstractPasswordBasedSecurityRealm
        Throws:
        org.acegisecurity.AuthenticationException
      • loadUserByUsername

        public org.acegisecurity.userdetails.UserDetails loadUserByUsername​(String username)
                                                                     throws org.acegisecurity.userdetails.UsernameNotFoundException,
                                                                            org.springframework.dao.DataAccessException
        Overrides:
        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
        Overrides:
        loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealm
        Throws:
        org.acegisecurity.userdetails.UsernameNotFoundException
        org.springframework.dao.DataAccessException
      • addGroups

        public void addGroups​(String username,
                              String... groups)
        Associate some groups with a username.