public class Authenticator extends Object:
Hook used by Session to resolve SMTP credentials lazily.
This is intentionally lighter than JavaMail's callback model: override requestPasswordAuthentication(session) and return the credentials to use.
import klyn.mails
class DemoAuthenticator extends Authenticator:
public override requestPasswordAuthentication(session as Session) as PasswordAuthentication:
return PasswordAuthentication("user", "secret")| Modifier and Type | Member | Description |
|---|---|---|
| public | requestPasswordAuthenticationrequestPasswordAuthentication(session as Session) as PasswordAuthentication: |
Resolves SMTP credentials for the provided session. |