Package waffle.spring

Class WindowsAuthenticationProvider

java.lang.Object
waffle.spring.WindowsAuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

public class WindowsAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
A Waffle authentication provider for Spring-security.
  • Constructor Details

    • WindowsAuthenticationProvider

      public WindowsAuthenticationProvider()
      Instantiates a new windows authentication provider.
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
    • supports

      public boolean supports(Class<? extends Object> authentication)
      Supports.
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider
      Parameters:
      authentication - the authentication
      Returns:
      true, if successful
    • getPrincipalFormat

      public PrincipalFormat getPrincipalFormat()
      Gets the principal format.
      Returns:
      the principal format
    • setPrincipalFormatEnum

      public void setPrincipalFormatEnum(PrincipalFormat value)
      Sets the principal format enum.
      Parameters:
      value - the new principal format enum
    • setPrincipalFormat

      public void setPrincipalFormat(String value)
      Sets the principal format.
      Parameters:
      value - the new principal format
    • getRoleFormat

      public PrincipalFormat getRoleFormat()
      Gets the role format.
      Returns:
      the role format
    • setRoleFormatEnum

      public void setRoleFormatEnum(PrincipalFormat value)
      Sets the role format enum.
      Parameters:
      value - the new role format enum
    • setRoleFormat

      public void setRoleFormat(String value)
      Sets the role format.
      Parameters:
      value - the new role format
    • isAllowGuestLogin

      public boolean isAllowGuestLogin()
      Checks if is allow guest login.
      Returns:
      true, if is allow guest login
    • setAllowGuestLogin

      public void setAllowGuestLogin(boolean value)
      Sets the allow guest login.
      Parameters:
      value - the new allow guest login
    • getAuthProvider

      public IWindowsAuthProvider getAuthProvider()
      Gets the auth provider.
      Returns:
      the auth provider
    • setAuthProvider

      public void setAuthProvider(IWindowsAuthProvider value)
      Sets the auth provider.
      Parameters:
      value - the new auth provider
    • getGrantedAuthorityFactory

      public GrantedAuthorityFactory getGrantedAuthorityFactory()
      Gets the granted authority factory.
      Returns:
      the granted authority factory
    • setGrantedAuthorityFactory

      public void setGrantedAuthorityFactory(GrantedAuthorityFactory value)
      Sets the granted authority factory.
      Parameters:
      value - the new granted authority factory
    • getDefaultGrantedAuthority

      public org.springframework.security.core.GrantedAuthority getDefaultGrantedAuthority()
      Gets the default granted authority.
      Returns:
      the default granted authority
    • setDefaultGrantedAuthority

      public void setDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value)
      Sets the default granted authority.
      Parameters:
      value - the new default granted authority