public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException { if (!accepted) { if (isDismissSensitiveDataUponUse()) { authentication.dismissSensitiveData(); } myPreviousErrorMessage = errorMessage; myPreviousAuthentication = authentication; myLastLoadedAuth = null; return; } if (myIsStoreAuth && authentication.isStorageAllowed() && myProviders[2] instanceof ISVNPersistentAuthenticationProvider) { // compare this authentication with last loaded from provider[2]. if (myLastLoadedAuth == null || myLastLoadedAuth != authentication) { ((ISVNPersistentAuthenticationProvider) myProviders[2]).saveAuthentication(authentication, kind, realm); } } myLastLoadedAuth = null; if (!hasExplicitCredentials(kind)) { // do not cache explicit credentials in runtime cache? ((CacheAuthenticationProvider) myProviders[1]).saveAuthentication(authentication, realm); } else { if (isDismissSensitiveDataUponUse()) { authentication.dismissSensitiveData(); } } }
public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException { if (outcomeListener!=null) outcomeListener.acknowledgeAuthentication(accepted,kind,realm,errorMessage,authentication); if (!accepted) { myPreviousErrorMessage = errorMessage; myPreviousAuthentication = authentication; myLastLoadedAuth = null; return; } if (myIsStoreAuth && authentication.isStorageAllowed() && myProviders[2] instanceof IPersistentAuthenticationProvider) { // compare this authentication with last loaded from provider[2]. if (myLastLoadedAuth == null || myLastLoadedAuth != authentication) { ((IPersistentAuthenticationProvider) myProviders[2]).saveAuthentication(authentication, kind, realm); } } myLastLoadedAuth = null; if (!hasExplicitCredentials(kind)) { // do not cache explicit credentials in runtime cache? ((CacheAuthenticationProvider) myProviders[1]).saveAuthentication(authentication, realm); } }
public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException { if (!accepted) { myPreviousErrorMessage = errorMessage; myPreviousAuthentication = authentication; myLastLoadedAuth = null; return; } if (myIsStoreAuth && authentication.isStorageAllowed() && myProviders[2] instanceof IPersistentAuthenticationProvider) { // compare this authentication with last loaded from provider[2]. if (myLastLoadedAuth == null || myLastLoadedAuth != authentication) { ((IPersistentAuthenticationProvider) myProviders[2]).saveAuthentication(authentication, kind, realm); } } myLastLoadedAuth = null; if (!hasExplicitCredentials(kind)) { // do not cache explicit credentials in runtime cache? ((CacheAuthenticationProvider) myProviders[1]).saveAuthentication(authentication, realm); } }
public void acknowledgeAuthentication(boolean accepted, String kind, String realm, SVNErrorMessage errorMessage, SVNAuthentication authentication) throws SVNException { if (!accepted) { myPreviousErrorMessage = errorMessage; myPreviousAuthentication = authentication; return; } if (myIsStoreAuth && authentication.isStorageAllowed() && myProviders[2] instanceof IPersistentAuthenticationProvider) { ((IPersistentAuthenticationProvider) myProviders[2]).saveAuthentication(authentication, kind, realm); } ((CacheAuthenticationProvider) myProviders[1]).saveAuthentication(authentication, realm); }