Class MockSecurityRealm

    • Constructor Detail

      • MockSecurityRealm

        @DataBoundConstructor
        public MockSecurityRealm​(String data,
                                 Long delayMillis,
                                 boolean randomDelay,
                                 IdStrategy userIdStrategy,
                                 IdStrategy groupIdStrategy)
    • Method Detail

      • outage

        public void outage()
        Starts a simulated outage.
      • endOutage

        public void endOutage()
        Ends the simulated outage.
      • getData

        public String getData()
      • getDelayMillis

        public Long getDelayMillis()
      • isRandomDelay

        public boolean isRandomDelay()
      • authenticate2

        protected org.springframework.security.core.userdetails.UserDetails authenticate2​(String username,
                                                                                          String password)
                                                                                   throws org.springframework.security.core.AuthenticationException
        Overrides:
        authenticate2 in class 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 AbstractPasswordBasedSecurityRealm
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException