Class SIPAuthenticationProvider<T extends SIPAuthenticationToken<T>>

    • Constructor Detail

      • SIPAuthenticationProvider

        public SIPAuthenticationProvider()
    • Method Detail

      • validateAuthentication

        protected T validateAuthentication​(T authentication)
        The authentication method to be implmented by sip authentication providers. By default it just calls the token validator, and if the token is valid, the same token is returned with the isAuthenticated flag set to true. Otherwise the token from the argument is returned as it was.

        If necessary this method can be overridden to provide a more sophisticated validation logic.

        Parameters:
        authentication - the token which should be checked for proper authentication
        Returns:
        a token which is either authenticated or not (can be the same as the input)
      • authenticate

        public final 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.AuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException
      • supports

        public final boolean supports​(Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider