Tabnine Logo
NTLM.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.httpclient.auth.NTLM
constructor

Best Java code snippets using org.apache.commons.httpclient.auth.NTLM.<init> (Showing top 15 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Create a NTLM authorization string for the given
 * challenge and NT credentials.
 *
 * @param challenge The challenge.
 * @param credentials {@link NTCredentials}
 *
 * @return a ntlm authorization string
 * @throws AuthenticationException is thrown if authentication fails
 * 
 * @deprecated Use non-static {@link #authenticate(Credentials, HttpMethod)}
 */
public static String authenticate(
 final NTCredentials credentials, final String challenge) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(NTCredentials, String)");
  if (credentials == null) {
    throw new IllegalArgumentException("Credentials may not be null");
  }
  
  NTLM ntlm = new NTLM();
  String s = ntlm.getResponseFor(challenge,
  credentials.getUserName(), credentials.getPassword(),
  credentials.getHost(), credentials.getDomain());
  return "NTLM " + s;
}
origin: commons-httpclient/commons-httpclient

NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(charset);
String s = ntlm.getResponseFor(
origin: commons-httpclient/commons-httpclient

      + credentials.getClass().getName());
NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(method.getParams().getCredentialCharset());
String response = null;
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Create a NTLM authorization string for the given
 * challenge and NT credentials.
 *
 * @param challenge The challenge.
 * @param credentials {@link NTCredentials}
 *
 * @return a ntlm authorization string
 * @throws AuthenticationException is thrown if authentication fails
 * 
 * @deprecated Use non-static {@link #authenticate(Credentials, HttpMethod)}
 */
public static String authenticate(
 final NTCredentials credentials, final String challenge) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(NTCredentials, String)");
  if (credentials == null) {
    throw new IllegalArgumentException("Credentials may not be null");
  }
  
  NTLM ntlm = new NTLM();
  String s = ntlm.getResponseFor(challenge,
  credentials.getUserName(), credentials.getPassword(),
  credentials.getHost(), credentials.getDomain());
  return "NTLM " + s;
}
origin: org.apache.commons/httpclient

/**
 * Create a NTLM authorization string for the given
 * challenge and NT credentials.
 *
 * @param challenge The challenge.
 * @param credentials {@link NTCredentials}
 *
 * @return a ntlm authorization string
 * @throws AuthenticationException is thrown if authentication fails
 * 
 * @deprecated Use non-static {@link #authenticate(Credentials, HttpMethod)}
 */
public static String authenticate(
 final NTCredentials credentials, final String challenge) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(NTCredentials, String)");
  if (credentials == null) {
    throw new IllegalArgumentException("Credentials may not be null");
  }
  
  NTLM ntlm = new NTLM();
  String s = ntlm.getResponseFor(challenge,
  credentials.getUserName(), credentials.getPassword(),
  credentials.getHost(), credentials.getDomain());
  return "NTLM " + s;
}
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Create a NTLM authorization string for the given
 * challenge and NT credentials.
 *
 * @param challenge The challenge.
 * @param credentials {@link NTCredentials}
 *
 * @return a ntlm authorization string
 * @throws AuthenticationException is thrown if authentication fails
 * 
 * @deprecated Use non-static {@link #authenticate(Credentials, HttpMethod)}
 */
public static String authenticate(
 final NTCredentials credentials, final String challenge) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(NTCredentials, String)");
  if (credentials == null) {
    throw new IllegalArgumentException("Credentials may not be null");
  }
  
  NTLM ntlm = new NTLM();
  String s = ntlm.getResponseFor(challenge,
  credentials.getUserName(), credentials.getPassword(),
  credentials.getHost(), credentials.getDomain());
  return "NTLM " + s;
}
origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Create a NTLM authorization string for the given
 * challenge and NT credentials.
 *
 * @param challenge The challenge.
 * @param credentials {@link NTCredentials}
 *
 * @return a ntlm authorization string
 * @throws AuthenticationException is thrown if authentication fails
 * 
 * @deprecated Use non-static {@link #authenticate(Credentials, HttpMethod)}
 */
public static String authenticate(
 final NTCredentials credentials, final String challenge) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(NTCredentials, String)");
  if (credentials == null) {
    throw new IllegalArgumentException("Credentials may not be null");
  }
  
  NTLM ntlm = new NTLM();
  String s = ntlm.getResponseFor(challenge,
  credentials.getUserName(), credentials.getPassword(),
  credentials.getHost(), credentials.getDomain());
  return "NTLM " + s;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(charset);
String s = ntlm.getResponseFor(
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(charset);
String s = ntlm.getResponseFor(
origin: org.wso2.commons-httpclient/commons-httpclient

NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(charset);
String s = ntlm.getResponseFor(
origin: org.apache.commons/httpclient

NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(charset);
String s = ntlm.getResponseFor(
origin: org.wso2.commons-httpclient/commons-httpclient

      + credentials.getClass().getName());
NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(method.getParams().getCredentialCharset());
String response = null;
origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

      + credentials.getClass().getName());
NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(method.getParams().getCredentialCharset());
String response = null;
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

      + credentials.getClass().getName());
NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(method.getParams().getCredentialCharset());
String response = null;
origin: org.apache.commons/httpclient

      + credentials.getClass().getName());
NTLM ntlm = new NTLM();
ntlm.setCredentialCharset(method.getParams().getCredentialCharset());
String response = null;
org.apache.commons.httpclient.authNTLM<init>

Popular methods of NTLM

  • addByte
    Adds the given byte to the response.
  • addBytes
    Adds the given bytes to the response.
  • calcResp
    Takes a 21 byte array and treats it as 3 56-bit DES keys. The 8 byte plaintext is encrypted with eac
  • convertShort
    Converts a given number to a two byte array in little endian order.
  • encrypt
    Encrypt the data.
  • getCipher
    Return the cipher for the specified key.
  • getResponse
    Returns the response that has been generated after shrinking the array if required and base64 encode
  • getResponseFor
    Returns the response for the given message.
  • getType1Message
    Creates the first message (type 1 message) in the NTLM authentication sequence. This message include
  • getType3Message
    Creates the type 3 message using the given server nonce. The type 3 message includes all the informa
  • hashPassword
    Creates the LANManager and NT response for the given password using the given nonce.
  • parseType2Message
    Extracts the server nonce out of the given message type 2.
  • hashPassword,
  • parseType2Message,
  • prepareResponse,
  • setCredentialCharset,
  • setupKey

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now