/** Used internally by jCIFS when an <tt>SmbAuthException</tt> is trapped to retrieve new user credentials. */ public static NtlmPasswordAuthentication requestNtlmPasswordAuthentication( String url, SmbAuthException sae ) { if( auth == null ) { return null; } synchronized( auth ) { auth.url = url; auth.sae = sae; return auth.getNtlmPasswordAuthentication(); } } /**
/** * 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; } }
/** * 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. */ public static NtlmPasswordAuthentication requestNtlmPasswordAuthentication( String url, SmbAuthException sae ) { if( auth == null ) { return null; } synchronized( auth ) { auth.url = url; auth.sae = sae; return auth.getNtlmPasswordAuthentication(); } } /**
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
/** * @param a * @param url * @param sae * @return credentials returned by prompt */ public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication ( NtlmAuthenticator a, String url, SmbAuthException sae ) { if ( a == null ) { return null; } synchronized ( a ) { a.url = url; a.sae = sae; return a.getNtlmPasswordAuthentication(); } }
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
/** Used internally by jCIFS when an <tt>SmbAuthException</tt> is trapped to retrieve new user credentials. */ public static NtlmPasswordAuthentication requestNtlmPasswordAuthentication( String url, SmbAuthException sae ) { if( auth == null ) { return null; } synchronized( auth ) { auth.url = url; auth.sae = sae; return auth.getNtlmPasswordAuthentication(); } } /**
} else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
/** Used internally by jCIFS when an <tt>SmbAuthException</tt> is trapped to retrieve new user credentials. */ public static NtlmPasswordAuthentication requestNtlmPasswordAuthentication( String url, SmbAuthException sae ) { if( auth == null ) { return null; } synchronized( auth ) { auth.url = url; auth.sae = sae; return auth.getNtlmPasswordAuthentication(); } } /**
tree = ssn.getSmbTree(null, null); tree.treeConnect(null, null); } else if ((a = NtlmAuthenticator.requestNtlmPasswordAuthentication( url.toString(), sae)) != null) { auth = a;
/** * @param a * @param url * @param sae * @return credentials returned by prompt */ public static NtlmPasswordAuthenticator requestNtlmPasswordAuthentication ( NtlmAuthenticator a, String url, SmbAuthException sae ) { if ( a == null ) { return null; } synchronized ( a ) { a.url = url; a.sae = sae; return a.getNtlmPasswordAuthentication(); } }