Tabnine Logo
NtlmAuthenticator.requestNtlmPasswordAuthentication
Code IndexAdd Tabnine to your IDE (free)

How to use
requestNtlmPasswordAuthentication
method
in
jcifs.smb.NtlmAuthenticator

Best Java code snippets using jcifs.smb.NtlmAuthenticator.requestNtlmPasswordAuthentication (Showing top 8 results out of 315)

origin: org.codelibs/jcifs

/**
 * Used internally by jCIFS when an <tt>SmbAuthException</tt> is trapped to retrieve new user credentials.
 * 
 * @param url
 * @param sae
 * @return credentials returned by prompt
 */
public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication ( String url, SmbAuthException sae ) {
  return requestNtlmPasswordAuthentication(auth, url, sae);
}
origin: AgNO3/jcifs-ng

/**
 * Used internally by jCIFS when an <tt>SmbAuthException</tt> is trapped to retrieve new user credentials.
 * 
 * @param url
 * @param sae
 * @return credentials returned by prompt
 */
public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication ( String url, SmbAuthException sae ) {
  return requestNtlmPasswordAuthentication(auth, url, sae);
}
origin: AgNO3/jcifs-ng

  /**
   * {@inheritDoc}
   *
   * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable)
   */
  @Override
  public boolean renewCredentials ( String locationHint, Throwable error ) {
    Credentials cred = getCredentials();
    if ( cred instanceof SmbRenewableCredentials ) {
      SmbRenewableCredentials renewable = (SmbRenewableCredentials) cred;
      CredentialsInternal renewed = renewable.renew();
      if ( renewed != null ) {
        this.creds = renewed;
        return true;
      }
    }
    NtlmAuthenticator auth = NtlmAuthenticator.getDefault();
    if ( auth != null ) {
      NtlmPasswordAuthenticator newAuth = NtlmAuthenticator
          .requestNtlmPasswordAuthentication(auth, locationHint, ( error instanceof SmbAuthException ) ? (SmbAuthException) error : null);
      if ( newAuth != null ) {
        this.creds = newAuth;
        return true;
      }
    }
    return false;
  }
}
origin: org.codelibs/jcifs

  /**
   * {@inheritDoc}
   *
   * @see jcifs.CIFSContext#renewCredentials(java.lang.String, java.lang.Throwable)
   */
  @Override
  public boolean renewCredentials ( String locationHint, Throwable error ) {
    Credentials cred = getCredentials();
    if ( cred instanceof SmbRenewableCredentials ) {
      SmbRenewableCredentials renewable = (SmbRenewableCredentials) cred;
      CredentialsInternal renewed = renewable.renew();
      if ( renewed != null ) {
        this.creds = renewed;
        return true;
      }
    }
    NtlmAuthenticator auth = NtlmAuthenticator.getDefault();
    if ( auth != null ) {
      NtlmPasswordAuthenticator newAuth = NtlmAuthenticator
          .requestNtlmPasswordAuthentication(auth, locationHint, ( error instanceof SmbAuthException ) ? (SmbAuthException) error : null);
      if ( newAuth != null ) {
        this.creds = newAuth;
        return true;
      }
    }
    return false;
  }
}
origin: org.samba.jcifs/jcifs

  tree = ssn.getSmbTree(null, null);
  tree.treeConnect(null, null);
} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication(
      url.toString(), sae)) != null) {
  auth = a;
origin: kohsuke/jcifs

  tree = ssn.getSmbTree(null, null);
  tree.treeConnect(null, null);
} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication(
      url.toString(), sae)) != null) {
  auth = a;
origin: jcifs/jcifs

  tree = ssn.getSmbTree(null, null);
  tree.treeConnect(null, null);
} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication(
      url.toString(), sae)) != null) {
  auth = a;
origin: com.jaeksoft/jcifs-krb5-jdk7

} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication(
      url.toString(), sae)) != null) {
  auth = a;
jcifs.smbNtlmAuthenticatorrequestNtlmPasswordAuthentication

Javadoc

Used internally by jCIFS when an SmbAuthException is trapped to retrieve new user credentials.

Popular methods of NtlmAuthenticator

  • getNtlmPasswordAuthentication
    An application extending this class must provide an implementation for this method that returns new
  • getDefault

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getSharedPreferences (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Top 12 Jupyter Notebook extensions
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