All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.payneteasy.superfly.security.x509.X509PreAuthenticatedAuthenticationProvider Maven / Gradle / Ivy

Go to download

Module for Spring Security which enables application to use Superfly authentication/authorization declaratively through Spring Security

The newest version!
package com.payneteasy.superfly.security.x509;

import org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider;

public class X509PreAuthenticatedAuthenticationProvider extends PreAuthenticatedAuthenticationProvider {
  public X509PreAuthenticatedAuthenticationProvider(UserDetailsService userDetailsService) {
    setPreAuthenticatedUserDetailsService(new UserDetailsByNameServiceWrapper<>(userDetailsService));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy