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.springframework.security.core.userdetails.UserDetails authenticate2​(String username, String password)  
      hudson.security.GroupDetails loadGroupByGroupname​(String groupname)  
      org.springframework.security.core.userdetails.UserDetails loadUserByUsername2​(String username)  
      • Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm

        authenticate, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername
      • 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

      • authenticate2

        protected org.springframework.security.core.userdetails.UserDetails authenticate2​(String username,
                                                                                          String password)
                                                                                   throws org.springframework.security.core.AuthenticationException
        Overrides:
        authenticate2 in class hudson.security.AbstractPasswordBasedSecurityRealm
        Throws:
        org.springframework.security.core.AuthenticationException
      • loadUserByUsername2

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername2​(String username)
                                                                                      throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Overrides:
        loadUserByUsername2 in class hudson.security.AbstractPasswordBasedSecurityRealm
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • loadGroupByGroupname

        public hudson.security.GroupDetails loadGroupByGroupname​(String groupname)
                                                          throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Overrides:
        loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealm
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • addGroups

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