Tabnine Logo
NTLMScheme.authenticate
Code IndexAdd Tabnine to your IDE (free)

How to use
authenticate
method
in
org.apache.commons.httpclient.auth.NTLMScheme

Best Java code snippets using org.apache.commons.httpclient.auth.NTLMScheme.authenticate (Showing top 5 results out of 315)

origin: commons-httpclient/commons-httpclient

/**
 * Produces NTLM authorization string for the given set of 
 * {@link Credentials}.
 * 
 * @param credentials The set of credentials to be used for athentication
 * @param method Method name is ignored by the NTLM authentication scheme
 * @param uri URI is ignored by the NTLM authentication scheme
 * @throws InvalidCredentialsException if authentication credentials
 *         are not valid or not applicable for this authentication scheme
 * @throws AuthenticationException if authorization string cannot 
 *   be generated due to an authentication failure
 * 
 * @return an NTLM authorization string
 * 
 * @deprecated Use {@link #authenticate(Credentials, HttpMethod)}
 */
public String authenticate(Credentials credentials, String method, String uri) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(Credentials, String, String)");
  NTCredentials ntcredentials = null;
  try {
    ntcredentials = (NTCredentials) credentials;
  } catch (ClassCastException e) {
    throw new InvalidCredentialsException(
     "Credentials cannot be used for NTLM authentication: " 
     + credentials.getClass().getName());
  }
  return NTLMScheme.authenticate(ntcredentials, this.ntlmchallenge);
}

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Produces NTLM authorization string for the given set of 
 * {@link Credentials}.
 * 
 * @param credentials The set of credentials to be used for athentication
 * @param method Method name is ignored by the NTLM authentication scheme
 * @param uri URI is ignored by the NTLM authentication scheme
 * @throws InvalidCredentialsException if authentication credentials
 *         are not valid or not applicable for this authentication scheme
 * @throws AuthenticationException if authorization string cannot 
 *   be generated due to an authentication failure
 * 
 * @return an NTLM authorization string
 * 
 * @deprecated Use {@link #authenticate(Credentials, HttpMethod)}
 */
public String authenticate(Credentials credentials, String method, String uri) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(Credentials, String, String)");
  NTCredentials ntcredentials = null;
  try {
    ntcredentials = (NTCredentials) credentials;
  } catch (ClassCastException e) {
    throw new InvalidCredentialsException(
     "Credentials cannot be used for NTLM authentication: " 
     + credentials.getClass().getName());
  }
  return NTLMScheme.authenticate(ntcredentials, this.ntlmchallenge);
}

origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Produces NTLM authorization string for the given set of 
 * {@link Credentials}.
 * 
 * @param credentials The set of credentials to be used for athentication
 * @param method Method name is ignored by the NTLM authentication scheme
 * @param uri URI is ignored by the NTLM authentication scheme
 * @throws InvalidCredentialsException if authentication credentials
 *         are not valid or not applicable for this authentication scheme
 * @throws AuthenticationException if authorization string cannot 
 *   be generated due to an authentication failure
 * 
 * @return an NTLM authorization string
 * 
 * @deprecated Use {@link #authenticate(Credentials, HttpMethod)}
 */
public String authenticate(Credentials credentials, String method, String uri) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(Credentials, String, String)");
  NTCredentials ntcredentials = null;
  try {
    ntcredentials = (NTCredentials) credentials;
  } catch (ClassCastException e) {
    throw new InvalidCredentialsException(
     "Credentials cannot be used for NTLM authentication: " 
     + credentials.getClass().getName());
  }
  return NTLMScheme.authenticate(ntcredentials, this.ntlmchallenge);
}

origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Produces NTLM authorization string for the given set of 
 * {@link Credentials}.
 * 
 * @param credentials The set of credentials to be used for athentication
 * @param method Method name is ignored by the NTLM authentication scheme
 * @param uri URI is ignored by the NTLM authentication scheme
 * @throws InvalidCredentialsException if authentication credentials
 *         are not valid or not applicable for this authentication scheme
 * @throws AuthenticationException if authorization string cannot 
 *   be generated due to an authentication failure
 * 
 * @return an NTLM authorization string
 * 
 * @deprecated Use {@link #authenticate(Credentials, HttpMethod)}
 */
public String authenticate(Credentials credentials, String method, String uri) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(Credentials, String, String)");
  NTCredentials ntcredentials = null;
  try {
    ntcredentials = (NTCredentials) credentials;
  } catch (ClassCastException e) {
    throw new InvalidCredentialsException(
     "Credentials cannot be used for NTLM authentication: " 
     + credentials.getClass().getName());
  }
  return NTLMScheme.authenticate(ntcredentials, this.ntlmchallenge);
}

origin: org.apache.commons/httpclient

/**
 * Produces NTLM authorization string for the given set of 
 * {@link Credentials}.
 * 
 * @param credentials The set of credentials to be used for athentication
 * @param method Method name is ignored by the NTLM authentication scheme
 * @param uri URI is ignored by the NTLM authentication scheme
 * @throws InvalidCredentialsException if authentication credentials
 *         are not valid or not applicable for this authentication scheme
 * @throws AuthenticationException if authorization string cannot 
 *   be generated due to an authentication failure
 * 
 * @return an NTLM authorization string
 * 
 * @deprecated Use {@link #authenticate(Credentials, HttpMethod)}
 */
public String authenticate(Credentials credentials, String method, String uri) 
 throws AuthenticationException {
  LOG.trace("enter NTLMScheme.authenticate(Credentials, String, String)");
  NTCredentials ntcredentials = null;
  try {
    ntcredentials = (NTCredentials) credentials;
  } catch (ClassCastException e) {
    throw new InvalidCredentialsException(
     "Credentials cannot be used for NTLM authentication: " 
     + credentials.getClass().getName());
  }
  return NTLMScheme.authenticate(ntcredentials, this.ntlmchallenge);
}

org.apache.commons.httpclient.authNTLMSchemeauthenticate

Javadoc

Produces NTLM authorization string for the given set of Credentials.

Popular methods of NTLMScheme

  • <init>
    Constructor for the NTLM authentication scheme.
  • getSchemeName
    Returns textual designation of the NTLM authentication scheme.
  • processChallenge
    Processes the NTLM challenge.

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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