com.sun.mail.auth.Ntlm.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中com.sun.mail.auth.Ntlm.<init>()方法的一些代码示例,展示了Ntlm.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ntlm.<init>()方法的具体详情如下:
包路径:com.sun.mail.auth.Ntlm
类名称:Ntlm
方法名:<init>

Ntlm.<init>介绍

[英]Create an NTLM authenticator. Username may be specified as domain\username in the Authenticator. If this notation is not used, then the domain will be taken from the ntdomain parameter.
[中]创建一个NTLM验证器。用户名可以在验证器中指定为域\用户名。如果未使用此表示法,则域将取自ntdomain参数。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: com.sun.mail/javax.mail

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: com.sun.mail/javax.mail

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

代码示例来源:origin: camunda/camunda-bpm-platform

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

代码示例来源:origin: javax.mail/com.springsource.javax.mail

String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, debug ? out : null);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: org.glassfish.metro/webservices-extra

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: com.sun.mail/jakarta.mail

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: com.sun.mail/android-mail

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: com.sun.mail/smtp

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: jboss/jboss-javaee-specs

@Override
String getInitialResponse(String host, String authzid, String user,
  String passwd) throws MessagingException, IOException {
  ntlm = new Ntlm(getNTLMDomain(), getLocalHost(),
      user, passwd, logger);
  flags = PropUtil.getIntProperty(
    session.getProperties(),
    "mail." + name + ".auth.ntlm.flags", 0);
  String type1 = ntlm.generateType1Msg(flags);
  return type1;
}

代码示例来源:origin: javax.mail/com.springsource.javax.mail

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, debug ? out : null);

代码示例来源:origin: com.sun.mail/jakarta.mail

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

代码示例来源:origin: org.glassfish.metro/webservices-extra

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

代码示例来源:origin: com.sun.mail/android-mail

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

代码示例来源:origin: jboss/jboss-javaee-specs

String domain = props.getProperty(
  "mail." + name + ".auth.ntlm.domain", "");
Ntlm ntlm = new Ntlm(domain, getLocalHost(), u, p, logger);

相关文章