Class DefaultAuthenticationTokenFactory

    • Constructor Detail

      • DefaultAuthenticationTokenFactory

        public DefaultAuthenticationTokenFactory()
    • Method Detail

      • getAuthenticationToken

        public org.apache.shiro.authc.AuthenticationToken getAuthenticationToken​(SubjectConnectionReference conn)
        Returns a new UsernamePasswordToken instance populated based on the ConnectionInfo's userName and password properties.
        Specified by:
        getAuthenticationToken in interface AuthenticationTokenFactory
        Parameters:
        conn - the subject's connection
        Returns:
        a new UsernamePasswordToken instance populated based on the ConnectionInfo's ConnectionInfo's userName and password properties.