• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AuthType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.fsck.k9.mail.AuthType的典型用法代码示例。如果您正苦于以下问题:Java AuthType类的具体用法?Java AuthType怎么用?Java AuthType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AuthType类属于com.fsck.k9.mail包,在下文中一共展示了AuthType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: withAuthTypePlainAndNoPlainAuthCapabilityAndLoginFailure_throwsException

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void withAuthTypePlainAndNoPlainAuthCapabilityAndLoginFailure_throwsException() throws Exception {
    settings.setAuthType(AuthType.PLAIN);

    MockPop3Server server = new MockPop3Server();
    server.output("+OK POP3 server greeting");
    server.expect("AUTH");
    server.output("+OK Listing of supported mechanisms follows");
    server.output("CRAM-MD5");
    server.output("EXTERNAL");
    server.output(".");
    server.expect("CAPA");
    server.output("+OK Listing of supported mechanisms follows");
    server.output("CRAM-MD5");
    server.output("EXTERNAL");
    server.output(".");
    server.expect("USER user");
    server.output("+OK");
    server.expect("PASS password");
    server.output("+OK");

    startServerAndCreateConnection(server);

    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:26,代码来源:Pop3ConnectionTest.java


示例2: updateViewFromAuthType

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
/**
 * Shows/hides password field and client certificate spinner
 */
private void updateViewFromAuthType() {
    AuthType authType = getSelectedAuthType();
    boolean isAuthTypeExternal = (AuthType.EXTERNAL == authType);

    if (isAuthTypeExternal) {

        // hide password fields, show client certificate fields
        mPasswordView.setVisibility(View.GONE);
        mPasswordLabelView.setVisibility(View.GONE);
        mClientCertificateLabelView.setVisibility(View.VISIBLE);
        mClientCertificateSpinner.setVisibility(View.VISIBLE);
    } else {

        // show password fields, hide client certificate fields
        mPasswordView.setVisibility(View.VISIBLE);
        mPasswordLabelView.setVisibility(View.VISIBLE);
        mClientCertificateLabelView.setVisibility(View.GONE);
        mClientCertificateSpinner.setVisibility(View.GONE);
    }
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:24,代码来源:AccountSetupIncoming.java


示例3: onNext

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
protected void onNext() {
    ConnectionSecurity securityType = getSelectedSecurity();
    String uri;
    String username = null;
    String password = null;
    String clientCertificateAlias = null;
    AuthType authType = null;
    if (mRequireLoginView.isChecked()) {
        username = mUsernameView.getText().toString();

        authType = getSelectedAuthType();
        if (AuthType.EXTERNAL == authType) {
            clientCertificateAlias = mClientCertificateSpinner.getAlias();
        } else {
            password = mPasswordView.getText().toString();
        }
    }

    String newHost = mServerView.getText().toString();
    int newPort = Integer.parseInt(mPortView.getText().toString());
    ServerSettings server = new ServerSettings(Type.SMTP, newHost, newPort, securityType, authType, username, password, clientCertificateAlias);
    uri = TransportUris.createTransportUri(server);
    mAccount.deleteCertificate(newHost, newPort, CheckDirection.OUTGOING);
    mAccount.setTransportUri(uri);
    AccountSetupCheckSettings.actionCheckSettings(this, mAccount, CheckDirection.OUTGOING);
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:27,代码来源:AccountSetupOutgoing.java


示例4: parseSettings_account_cram_md5

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void parseSettings_account_cram_md5() throws SettingsImportExportException {
    String validUUID = UUID.randomUUID().toString();
    InputStream inputStream = new StringInputStream("<k9settings format=\"1\" version=\"1\">" +
            "<accounts><account uuid=\"" + validUUID + "\"><name>Account</name>" +
            "<incoming-server><authentication-type>CRAM_MD5</authentication-type></incoming-server>" +
            "</account></accounts></k9settings>");
    List<String> accountUuids = new ArrayList<>();
    accountUuids.add(validUUID);

    SettingsImporter.Imported results = SettingsImporter.parseSettings(inputStream, true, accountUuids, false);

    assertEquals("Account", results.accounts.get(validUUID).name);
    assertEquals(validUUID, results.accounts.get(validUUID).uuid);
    assertEquals(AuthType.CRAM_MD5, results.accounts.get(validUUID).incoming.authenticationType);
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:17,代码来源:SettingsImporterTest.java


示例5: setup

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Before
public void setup() {
    Utils.deleteExistingAccounts(preferences);
    Account account = Preferences.getPreferences(
            shadowApplication.getApplicationContext()).newAccount();
    String storeUri = ImapStore.createStoreUri(new ServerSettings(
            Type.IMAP, "hotmail.com",
            Type.IMAP.defaultPort, ConnectionSecurity.NONE,
            AuthType.PLAIN, "test",
            "password",
            null));
    account.setStoreUri(storeUri);
    Intent intent = new Intent();
    intent.putExtra("account", account.getUuid());
    controller = Robolectric.buildActivity(AccountSetupIncoming.class)
            .withIntent(intent)
            .create().resume();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:19,代码来源:AccountSetupIncomingTest.java


示例6: setup

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Before
public void setup() {
    Utils.deleteExistingAccounts(preferences);
    account = Preferences.getPreferences(
            shadowApplication.getApplicationContext()).newAccount();
    String storeUri = ImapStore.createStoreUri(new ServerSettings(
            Type.IMAP, "hotmail.com",
            Type.IMAP.defaultPort, ConnectionSecurity.NONE,
            AuthType.PLAIN, "test",
            "password",
            null));
    account.setStoreUri(storeUri);
    account.setEmail("[email protected]");

    Intent intent = new Intent();
    intent.putExtra("account", account.getUuid());
    controller = Robolectric.buildActivity(AccountSetupAccountType.class)
            .withIntent(intent)
            .create().resume();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:21,代码来源:AccountSetupAccountTypeTest.java


示例7: open_withAuthPlainExtension

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withAuthPlainExtension() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH PLAIN LOGIN");
    server.expect("AUTH PLAIN AHVzZXIAcGFzc3dvcmQ=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.PLAIN, ConnectionSecurity.NONE);

    transport.open();

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:17,代码来源:SmtpTransportTest.java


示例8: open_withAuthLoginExtension

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withAuthLoginExtension() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH LOGIN");
    server.expect("AUTH LOGIN");
    server.output("250 OK");
    server.expect("dXNlcg==");
    server.output("250 OK");
    server.expect("cGFzc3dvcmQ=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.PLAIN, ConnectionSecurity.NONE);

    transport.open();

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:21,代码来源:SmtpTransportTest.java


示例9: open_withoutLoginAndPlainAuthExtensions_shouldThrow

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withoutLoginAndPlainAuthExtensions_shouldThrow() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH");
    server.expect("QUIT");
    server.output("221 BYE");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.PLAIN, ConnectionSecurity.NONE);

    try {
        transport.open();
        fail("Exception expected");
    } catch (MessagingException e) {
        assertEquals("Authentication methods SASL PLAIN and LOGIN are unavailable.", e.getMessage());
    }

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:22,代码来源:SmtpTransportTest.java


示例10: withTLS_connectsToSocket

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void withTLS_connectsToSocket() throws Exception {
    String response = INITIAL_RESPONSE +
            AUTH_HANDLE_RESPONSE +
            CAPA_RESPONSE +
            AUTH_PLAIN_AUTHENTICATED_RESPONSE;

    when(mockSocket.getInputStream()).thenReturn(new ByteArrayInputStream(response.getBytes()));
    setSettingsForMockSocket();
    settings.setAuthType(AuthType.PLAIN);

    new Pop3Connection(settings, mockTrustedSocketFactory);

    assertEquals(AUTH +
            CAPA +
            AUTH_PLAIN_WITH_LOGIN, new String(outputStream.toByteArray()));
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:18,代码来源:Pop3ConnectionTest.java


示例11: open_withXoauth2Extension_shouldInvalidateAndRetryOn400Response

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withXoauth2Extension_shouldInvalidateAndRetryOn400Response() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH XOAUTH2");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG9sZFRva2VuAQE=");
    server.output("334 "+ XOAuth2ChallengeParserTest.STATUS_400_RESPONSE);
    server.expect("");
    server.output("535-5.7.1 Username and Password not accepted. Learn more at");
    server.output("535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 hx9sm5317360pbc.68");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG5ld1Rva2VuAQE=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    transport.open();

    InOrder inOrder = inOrder(oAuth2TokenProvider);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    inOrder.verify(oAuth2TokenProvider).invalidateToken(USERNAME);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:26,代码来源:SmtpTransportTest.java


示例12: open_withXoauth2Extension_shouldInvalidateAndRetryOnInvalidJsonResponse

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withXoauth2Extension_shouldInvalidateAndRetryOnInvalidJsonResponse() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH XOAUTH2");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG9sZFRva2VuAQE=");
    server.output("334 "+ XOAuth2ChallengeParserTest.INVALID_RESPONSE);
    server.expect("");
    server.output("535-5.7.1 Username and Password not accepted. Learn more at");
    server.output("535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 hx9sm5317360pbc.68");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG5ld1Rva2VuAQE=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    transport.open();

    InOrder inOrder = inOrder(oAuth2TokenProvider);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    inOrder.verify(oAuth2TokenProvider).invalidateToken(USERNAME);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:26,代码来源:SmtpTransportTest.java


示例13: open_withXoauth2Extension_shouldInvalidateAndRetryOnMissingStatusJsonResponse

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withXoauth2Extension_shouldInvalidateAndRetryOnMissingStatusJsonResponse() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH XOAUTH2");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG9sZFRva2VuAQE=");
    server.output("334 "+ XOAuth2ChallengeParserTest.MISSING_STATUS_RESPONSE);
    server.expect("");
    server.output("535-5.7.1 Username and Password not accepted. Learn more at");
    server.output("535 5.7.1 http://support.google.com/mail/bin/answer.py?answer=14257 hx9sm5317360pbc.68");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG5ld1Rva2VuAQE=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    transport.open();

    InOrder inOrder = inOrder(oAuth2TokenProvider);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    inOrder.verify(oAuth2TokenProvider).invalidateToken(USERNAME);
    inOrder.verify(oAuth2TokenProvider).getToken(eq(USERNAME), anyInt());
    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:26,代码来源:SmtpTransportTest.java


示例14: open_withXoauth2Extension_shouldThrowOnFailure_fetchingToken

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withXoauth2Extension_shouldThrowOnFailure_fetchingToken() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH XOAUTH2");
    server.expect("QUIT");
    server.output("221 BYE");
    when(oAuth2TokenProvider.getToken(anyString(), anyInt())).thenThrow(new AuthenticationFailedException("Failed to fetch token"));
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    try {
        transport.open();
        fail("Exception expected");
    } catch (AuthenticationFailedException e) {
        assertEquals("Failed to fetch token", e.getMessage());
    }

    server.verifyConnectionClosed();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:23,代码来源:SmtpTransportTest.java


示例15: open_withoutXoauth2Extension_shouldThrow

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withoutXoauth2Extension_shouldThrow() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH PLAIN LOGIN");
    server.expect("QUIT");
    server.output("221 BYE");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    try {
        transport.open();
        fail("Exception expected");
    } catch (MessagingException e) {
        assertEquals("Authentication method XOAUTH2 is unavailable.", e.getMessage());
    }

    server.verifyConnectionClosed();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:22,代码来源:SmtpTransportTest.java


示例16: open_withAuthExternalExtension

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withAuthExternalExtension() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH EXTERNAL");
    server.expect("AUTH EXTERNAL dXNlcg==");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.EXTERNAL, ConnectionSecurity.NONE);

    transport.open();

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:17,代码来源:SmtpTransportTest.java


示例17: open_withoutAuthExternalExtension_shouldThrow

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withoutAuthExternalExtension_shouldThrow() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH");
    server.expect("QUIT");
    server.output("221 BYE");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.EXTERNAL, ConnectionSecurity.NONE);

    try {
        transport.open();
        fail("Exception expected");
    } catch (CertificateValidationException e) {
        assertEquals(CertificateValidationException.Reason.MissingCapability, e.getReason());
    }

    server.verifyConnectionClosed();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:22,代码来源:SmtpTransportTest.java


示例18: open_withAutomaticAuthAndNoTransportSecurityAndAuthCramMd5Extension_shouldUseAuthCramMd5

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withAutomaticAuthAndNoTransportSecurityAndAuthCramMd5Extension_shouldUseAuthCramMd5()
        throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH CRAM-MD5");
    server.expect("AUTH CRAM-MD5");
    server.output(Base64.encode("<[email protected]>"));
    server.expect("dXNlciA3NmYxNWEzZmYwYTNiOGI1NzcxZmNhODZlNTcyMDk2Zg==");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.AUTOMATIC,
            ConnectionSecurity.NONE);

    transport.open();

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:21,代码来源:SmtpTransportTest.java


示例19: open_withAutomaticAuthAndNoTransportSecurityAndAuthPlainExtension_shouldThrow

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withAutomaticAuthAndNoTransportSecurityAndAuthPlainExtension_shouldThrow() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 localhost Simple Mail Transfer Service Ready");
    server.expect("EHLO localhost");
    server.output("250-localhost Hello client.localhost");
    server.output("250 AUTH PLAIN LOGIN");
    server.expect("QUIT");
    server.output("221 BYE");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.AUTOMATIC,
            ConnectionSecurity.NONE);

    try {
        transport.open();
        fail("Exception expected");
    } catch (MessagingException e) {
        assertEquals("Update your outgoing server authentication setting. AUTOMATIC auth. is unavailable.",
                e.getMessage());
    }

    server.verifyConnectionClosed();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:24,代码来源:SmtpTransportTest.java


示例20: open_withManyExtensions_shouldParseAll

import com.fsck.k9.mail.AuthType; //导入依赖的package包/类
@Test
public void open_withManyExtensions_shouldParseAll() throws Exception {
    MockSmtpServer server = new MockSmtpServer();
    server.output("220 smtp.gmail.com ESMTP x25sm19117693wrx.27 - gsmtp");
    server.expect("EHLO localhost");
    server.output("250-smtp.gmail.com at your service, [86.147.34.216]");
    server.output("250-SIZE 35882577");
    server.output("250-8BITMIME");
    server.output("250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH");
    server.output("250-ENHANCEDSTATUSCODES");
    server.output("250-PIPELINING");
    server.output("250-CHUNKING");
    server.output("250 SMTPUTF8");
    server.expect("AUTH XOAUTH2 dXNlcj11c2VyAWF1dGg9QmVhcmVyIG9sZFRva2VuAQE=");
    server.output("235 2.7.0 Authentication successful");
    SmtpTransport transport = startServerAndCreateSmtpTransport(server, AuthType.XOAUTH2, ConnectionSecurity.NONE);

    transport.open();

    server.verifyConnectionStillOpen();
    server.verifyInteractionCompleted();
}
 
开发者ID:philipwhiuk,项目名称:q-mail,代码行数:23,代码来源:SmtpTransportTest.java



注:本文中的com.fsck.k9.mail.AuthType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Repository类代码示例发布时间:2022-05-16
下一篇:
Java UserVmVO类代码示例发布时间:2022-05-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap