- java.lang.Object
-
- com.sun.mail.smtp.SMTPSaslAuthenticator
-
- All Implemented Interfaces:
SaslAuthenticator
public class SMTPSaslAuthenticator extends java.lang.Object implements SaslAuthenticator
This class contains a single method that does authentication using SASL. This is in a separate class so that it can be compiled with J2SE 1.5. Eventually it should be merged into SMTPTransport.java.
-
-
Constructor Summary
Constructors Constructor Description SMTPSaslAuthenticator(SMTPTransport pr, java.lang.String name, java.util.Properties props, MailLogger logger, java.lang.String host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(java.lang.String[] mechs, java.lang.String realm, java.lang.String authzid, java.lang.String u, java.lang.String p)
-
-
-
Constructor Detail
-
SMTPSaslAuthenticator
public SMTPSaslAuthenticator(SMTPTransport pr, java.lang.String name, java.util.Properties props, MailLogger logger, java.lang.String host)
-
-
Method Detail
-
authenticate
public boolean authenticate(java.lang.String[] mechs, java.lang.String realm, java.lang.String authzid, java.lang.String u, java.lang.String p) throws MessagingException
- Specified by:
authenticate
in interfaceSaslAuthenticator
- Throws:
MessagingException
-
-