Class AuthenticationManagerProxy

java.lang.Object
hudson.security.AuthenticationManagerProxy
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationManager

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class AuthenticationManagerProxy extends Object implements org.springframework.security.authentication.AuthenticationManager
AuthenticationManager proxy that delegates to another instance.

This is used so that we can set up servlet filters first (which requires a reference to AuthenticationManager), then later change the actual authentication manager (and its set up) at runtime.

Author:
Kohsuke Kawaguchi
  • Constructor Details

    • AuthenticationManagerProxy

      public AuthenticationManagerProxy()
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationManager
      Throws:
      org.springframework.security.core.AuthenticationException
    • setDelegate

      public void setDelegate(org.springframework.security.authentication.AuthenticationManager manager)