public void dispose() { if (clientCred != null && !clientCred.isNull()) { final int rc = Secur32.INSTANCE.FreeCredentialsHandle(clientCred); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } if (sspiContext != null && !sspiContext.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(sspiContext); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } continueNeeded = true; // waiting clientCred = null; sspiContext = null; }
/** * Dispose a security context. * * @param ctx * Security context. * @return True if a context was disposed. */ public static boolean dispose(final CtxtHandle ctx) { if (ctx != null && !ctx.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(ctx); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } return true; } return false; }
/** * Dispose a security context. * * @param ctx * Security context. * @return True if a context was disposed. */ public static boolean dispose(final CtxtHandle ctx) { if (ctx != null && !ctx.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(ctx); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } return true; } return false; }
public void dispose() { if(clientCred != null && !clientCred.isNull()) { final int rc = Secur32.INSTANCE.FreeCredentialsHandle(clientCred); if(WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } if(sspiContext != null && !sspiContext.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(sspiContext); if(WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } continueNeeded = true; // waiting clientCred = null; sspiContext = null; }
public void dispose() { if (clientCred != null && !clientCred.isNull()) { final int rc = Secur32.INSTANCE.FreeCredentialsHandle(clientCred); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } if (sspiContext != null && !sspiContext.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(sspiContext); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } continueNeeded = true; // waiting clientCred = null; sspiContext = null; }
/** * Dispose a security context. * * @param ctx * Security context. * @return True if a context was disposed. */ public static boolean dispose(final CtxtHandle ctx) { if (ctx != null && !ctx.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(ctx); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } return true; } return false; }
public void dispose() { if (clientCred != null && !clientCred.isNull()) { final int rc = Secur32.INSTANCE.FreeCredentialsHandle(clientCred); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } if (sspiContext != null && !sspiContext.isNull()) { final int rc = Secur32.INSTANCE.DeleteSecurityContext(sspiContext); if (WinError.SEC_E_OK != rc) { throw new Win32Exception(rc); } } continueNeeded = true; // waiting clientCred = null; sspiContext = null; }