Codota Logo
NTLMScheme.authenticate
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
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

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • JFileChooser (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now