com.maverick.sshd.auth.jaas
Class AbstractJAASAuthenticationProvider
java.lang.Object
com.maverick.sshd.PasswordAuthenticationProvider
com.maverick.sshd.auth.jaas.AbstractJAASAuthenticationProvider
- All Implemented Interfaces:
- AuthenticationProvider
- Direct Known Subclasses:
- FileAuthenticationProvider, SunJAASFileConfigurationAuthenticationProvider
public abstract class AbstractJAASAuthenticationProvider
- extends PasswordAuthenticationProvider
An authentication provider that uses JAAS for native authentication
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logins
protected final Map<String,LoginContext> logins
connections
protected final List<Connection> connections
LOGIN_CONTEXT
public static final String LOGIN_CONTEXT
- See Also:
- Constant Field Values
AbstractJAASAuthenticationProvider
public AbstractJAASAuthenticationProvider()
getLoginContext
public LoginContext getLoginContext(String con)
changePassword
public boolean changePassword(Connection con,
String username,
String oldpassword,
String newpassword)
- Description copied from class:
PasswordAuthenticationProvider
- Implement this method to change the users password
- Specified by:
changePassword in class PasswordAuthenticationProvider
- Returns:
- boolean
getJAASConfiguration
public abstract Configuration getJAASConfiguration()
verifyPassword
public boolean verifyPassword(Connection con,
String username,
String password)
throws PasswordChangeException
- Description copied from class:
PasswordAuthenticationProvider
- Implement this method to log the user into the system.
- Specified by:
verifyPassword in class PasswordAuthenticationProvider
- Returns:
- boolean
- Throws:
PasswordChangeException - throw this exception if the users password requires a changing.
getConnections
public List<Connection> getConnections()
Copyright © 2012. All Rights Reserved.