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

Inherited Properties
property Inherited Properties from Object: type
Methods

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

Inherited Methods
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml