/** * Clean up native win32 resources after completion or failure of SSPI authentication. This * SSPIClient instance becomes unusable after disposal. */ public void dispose() { if (sspiContext != null) { sspiContext.dispose(); sspiContext = null; } if (clientCredentials != null) { clientCredentials.dispose(); clientCredentials = null; } } }
@Override public void dispose() { WindowsSecurityContextImpl.dispose(this.ctx); if (this.credentials != null) { this.credentials.dispose(); } }
@Override public void dispose() { WindowsSecurityContextImpl.dispose(this.ctx); if (this.credentials != null) { this.credentials.dispose(); } }
@Override public void dispose() { WindowsSecurityContextImpl.dispose(this.ctx); if (this.credentials != null) { this.credentials.dispose(); } }
case WinError.SEC_E_BUFFER_TOO_SMALL: tokenSize += Sspi.MAX_TOKEN_SIZE; sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); break; case WinError.SEC_E_OK: break; default: sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); this.continueContexts.asMap().remove(connectionId); throw new Win32Exception(rc);
case WinError.SEC_E_BUFFER_TOO_SMALL: tokenSize += Sspi.MAX_TOKEN_SIZE; sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); break; case WinError.SEC_E_OK: break; default: sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); this.resetSecurityToken(connectionId); throw new Win32Exception(rc);
case WinError.SEC_E_BUFFER_TOO_SMALL: tokenSize += Sspi.MAX_TOKEN_SIZE; sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); break; case WinError.SEC_E_OK: break; default: sc.dispose(); WindowsSecurityContextImpl.dispose(continueHandle); this.resetSecurityToken(connectionId); throw new Win32Exception(rc);