Authenticator
class in package klyn.mails

    public class Authenticator extends Object:

Object
└ Authenticator

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")

Properties inherited from Object: type
Methods

Modifier and Type | Member | Description
--- | --- | ---
public | requestPasswordAuthentication `requestPasswordAuthentication(session as Session) as PasswordAuthentication:` | Resolves SMTP credentials for the provided session.

Methods inherited from Object: fromJson, toDict, toJson, toString, toXml