Class DefaultAuthenticationTokenFactory

java.lang.Object
org.apache.activemq.shiro.authc.DefaultAuthenticationTokenFactory
All Implemented Interfaces:
AuthenticationTokenFactory

public class DefaultAuthenticationTokenFactory extends Object implements AuthenticationTokenFactory
Default implementation of the AuthenticationTokenFactory interface that returns UsernamePasswordToken instances based on inspecting the ConnectionInfo.
Since:
5.10.0
  • Constructor Details

    • DefaultAuthenticationTokenFactory

      public DefaultAuthenticationTokenFactory()
  • Method Details

    • 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.