Class JenkinsRule.DummySecurityRealm

java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.security.SecurityRealm>
hudson.security.SecurityRealm
hudson.security.AbstractPasswordBasedSecurityRealm
org.jvnet.hudson.test.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:
  • 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

    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
     
    org.springframework.security.core.userdetails.UserDetails
     

    Methods inherited from class hudson.security.AbstractPasswordBasedSecurityRealm

    authenticate, authenticateByPassword, createSecurityComponents, loadGroupByGroupname2, loadUserByUsername

    Methods inherited from class hudson.security.SecurityRealm

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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.