/** * 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); }
/** * 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); }
/** * {@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; } }
/** * {@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; } }
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;