public class DefaultAuthenticationTokenFactory extends Object implements AuthenticationTokenFactory
AuthenticationTokenFactory
interface that returns
UsernamePasswordToken
instances based on inspecting the
ConnectionInfo
.Constructor and Description |
---|
DefaultAuthenticationTokenFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.shiro.authc.AuthenticationToken |
getAuthenticationToken(SubjectConnectionReference conn)
|
public DefaultAuthenticationTokenFactory()
public org.apache.shiro.authc.AuthenticationToken getAuthenticationToken(SubjectConnectionReference conn)
UsernamePasswordToken
instance populated based on the ConnectionInfo's
userName
and
password
properties.getAuthenticationToken
in interface AuthenticationTokenFactory
conn
- the subject's connectionUsernamePasswordToken
instance populated based on the ConnectionInfo's
ConnectionInfo's userName
and
password
properties.Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.