public interface Authenticator
To activate a custom authentication scheme:
Once the authentication scheme has been activated, the final step is to migrate over the FTP, SFTP, and/or HTTP local user
mailboxes and their credentials. This can be done using ILexiCom.create(int, java.lang.String[]) to
create mailboxes. The mailbox "pwdhash" property must be set to the value that
corresponds to the custom scheme. This can be done using ILexiCom.setProperty(int, java.lang.String[], java.lang.String, java.lang.String).
The value must begin with the scheme name followed by a colon (:). The expectation is that any other fields within the
value are also separated by colons, but this is not a requirement. The full value including the scheme name is passed
to the authenticator.
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getPreviousSchemeName()
Returns the name of the previous scheme that was used
|
java.lang.String |
getSchemeName()
Returns the name of the scheme
|
boolean |
verify(java.lang.String username,
java.lang.String password,
java.lang.String hashScheme)
Verifies the username and password are valid with the given
scheme:iterations:salt:hash.
|
boolean verify(java.lang.String username,
java.lang.String password,
java.lang.String hashScheme)
username - usernamepassword - user-provided password to verifyhashScheme - previously set hashed password for user - always starts with scheme:java.lang.String getSchemeName()
default java.lang.String getPreviousSchemeName()