Package org.apache.activemq.shiro.authc
Class DefaultAuthenticationTokenFactory
java.lang.Object
org.apache.activemq.shiro.authc.DefaultAuthenticationTokenFactory
- All Implemented Interfaces:
AuthenticationTokenFactory
Default implementation of the
AuthenticationTokenFactory interface that returns
UsernamePasswordToken instances based on inspecting the
ConnectionInfo.- Since:
- 5.10.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shiro.authc.AuthenticationTokenReturns a newUsernamePasswordTokeninstance populated based on the ConnectionInfo'suserNameandpasswordproperties.
-
Constructor Details
-
DefaultAuthenticationTokenFactory
public DefaultAuthenticationTokenFactory()
-
-
Method Details
-
getAuthenticationToken
public org.apache.shiro.authc.AuthenticationToken getAuthenticationToken(SubjectConnectionReference conn) Returns a newUsernamePasswordTokeninstance populated based on the ConnectionInfo'suserNameandpasswordproperties.- Specified by:
getAuthenticationTokenin interfaceAuthenticationTokenFactory- Parameters:
conn- the subject's connection- Returns:
- a new
UsernamePasswordTokeninstance populated based on the ConnectionInfo's ConnectionInfo'suserNameandpasswordproperties.
-