Package org.apache.activemq.shiro.authc
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 theAuthenticationTokenFactory
interface that returnsUsernamePasswordToken
instances based on inspecting theConnectionInfo
.- Since:
- 5.10.0
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthenticationTokenFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.shiro.authc.AuthenticationToken
getAuthenticationToken(SubjectConnectionReference conn)
-
-
-
Method Detail
-
getAuthenticationToken
public org.apache.shiro.authc.AuthenticationToken getAuthenticationToken(SubjectConnectionReference conn)
Returns a newUsernamePasswordToken
instance populated based on the ConnectionInfo'suserName
andpassword
properties.- Specified by:
getAuthenticationToken
in interfaceAuthenticationTokenFactory
- Parameters:
conn
- the subject's connection- Returns:
- a new
UsernamePasswordToken
instance populated based on the ConnectionInfo's ConnectionInfo'suserName
andpassword
properties.
-
-